Help with my php code….
-
i want to display in one section of my home page a list of last 4 topics but not the last 3 because i display the last 3 in a sticky box….
please correct my code…
thanks
———————————————————–
<?php query_posts(‘showposts=7’); ?>
<?php $numero = 0; ?><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if ($numero > 2): ?>display output
<?php else : $numero = numero + 1; ?>
<?php endif; ?>
<?php endwhile; endif; ?>
- The topic ‘Help with my php code….’ is closed to new replies.