wordpress php and the loop (?)
-
hi! i’ve bought and am now trying to customize a theme (really bad support — will not mention theme name, don’t wanna dis the guy publicly).
Anyways worked through all of my issues except one.
i’ve got this piece of code:
<?php if ($tagged == '') : query_posts('cat='.$category[0]->cat_ID.'&showposts=1000'); $postnumber =0; $tpn=0; if ( have_posts() ) : while ( have_posts() ) : the_post(); $postnumber++; if ($post->ID == $theid): $tpn = $postnumber; endif; if (($tpn!=0)&&($tpn+4>=$postnumber)): ?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php elseif (($tpn!=0)&&($tpn+4<$postnumber)): brake; endif; endwhile; endif; $offset=$tpn-$tpn%quonfig(5); else : $offset=0; endif;?>
and im trying to put this in to exclude posts from cat4 showing up:
<?php if (in_category('4')) continue; ?>
any help would be greatly appreciated!
Thanks in advance for helping out a total newbie! (hey i’m practically begging here!)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wordpress php and the loop (?)’ is closed to new replies.