[EventCalendar] Looking backwards in time? - if statements
steve at bigsmoke.com
Tue Oct 31 11:26:43 UTC 2006
As aside to the main thread...
>> <!-- The Loop -->
>> <?php if (have_posts()) : ?>
>> <?php while (have_posts()) : the_post(); ?>
>> <?php if ( in_category($this_cat) ) : ?>
> What? Putting an "if ..." inside your loop is not a good idea. Imagine
> what happens if the first 10 posts fail your 'if' criterion. If
> $this_cat is not 2, then why not...
Why is putting an 'if' inside The Loop not a good idea?
Surely if a post fails the loop then nothing gets printed. If they all
fail then I get nothing printed - which might not be pretty but isn't
fatal. Or am I missing something??
More information about the EventCalendar