Help with query posts
-
SO I have this piece of code that should display the posts of the selected categories by their ID. this piece of code is in both the footer and the drop down menu.
on my home page (a static page) it displays ONE post that when clicked on goes no where, and the same goes for the drop down.
on the blog page it displays up to 10 or more posts when it should only display 5.
can some one tell me what’s wrong with this code?
<h4><?php _e('Recent Posts'); ?></h4> <?php query_posts('showposts=5','cat=3,4,9,13,5,6,15,7'); wp_reset_query();?> <?php while (have_posts()) : the_post(); ?> <li><em>(<?php the_time('M d') ?>)</em><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> </li> <?php endwhile;?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Help with query posts’ is closed to new replies.