I have a loop where I display all posts on the site, the problem is that the_excerpt is not being displayed. What am I doing wrong?
<?php
$all_posts = get_posts(array('numberposts' => -1));
$total_posts = count($all_posts);
$posts_per_column = intval($total_posts / 3);
$count = 0;
$col = 1;
foreach($all_posts as $post):
?>
<!--post-->
<div class='post' id='article<?php echo $count; ?>'>
<div class='thumb'>
<a href='<?php the_permalink() ?>'>
<!--todo: round thumb images and make them of variable height-->
<?php the_post_thumbnail() ?>
<?php
$cat = get_the_category();
$cat_long = $cat[0]->cat_name;
$cat_split = explode(' ', $cat_long);
$cat_short = strtolower($cat_split[0]);
?>
</a>
<span class='tag <?php echo $cat_short ?>'><?php echo $cat_long ?></span>
</div>
<div class='inner <?php echo $cat_short ?>'>
<h2 class='entry-title'><a href='<?php the_permalink() ?>'><?php the_title() ?></a></h2>
</div>
<div class='entry-content'>
<?php the_excerpt() ?>
</div>
</div>
<!--end post-->