Here is my loop code:
<?php foreach ( $posts as $post ) { ?><br />
<?php if( in_array('asides', $post->tags ) ) { ?><br />
<div id="post-<?php echo $post->id; ?>"><br />
<p class="quickie"><br />
<a href="<?php echo $post->permalink; ?>" rel="bookmark" title='
<?php echo $post->title; ?>'><
?php echo $post->title_out; ?></a> » <?php echo $post->content; ?>
<a href="<?php echo $post->permalink; ?>#comments"
title="Comments on this post">
(<?php echo $post->comments->approved->count; ?>)</a><br />
</p><br />
</div><br />
<?php } else { ?>
<div class="date"><?php echo $post->pubdate_out; ?></div>
<div class="entry_title"><?php echo $post->title_out; ?></div>
<?php echo $post->content_out; ?>
<a href="<?php echo $post->permalink; ?>"><?php echo $post->comments-
>approved->count; ?> <?php echo _n( 'Comment', 'Comments', $post-
>comments->approved->count ); ?></a><br />
<span class="tags">Filed under <?php if ( is_array( $post->tags ) ) { ?
><?php echo $post->tags_out; ?><?php } ?>.</span>
<?php if ( $user ) { ?> <a href="<?php
URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>"
title="Edit post">Edit This Entry</a><?php } ?><br><br>
<div class="divider"> </div>
<br>
<!--end of loop--> <?php } ?>
On Mar 5, 3:06 am, "Ali B." <
dmond...@gmail.com> wrote:
> Did you close the else and the foreach blocks?
>
> If you didn't add <?php } } ?> at the bottom of CJD's code snippet.
>
> Cheers
>