I have this code that is doing what it should nicely on the right sidebar, pulling two post excerpts. Unfortunately for some reason it is also pulling two FULL post into my page! You will see them under the note thing. Why?
< ?php query_posts('showposts=6'); ?>
< ?php while (have_posts()) : the_post(); ?>
">< ?php the_title(); ?>
< ?php the_excerpt(__('(more…)')); ?>
< ?php endwhile;?>
The code you posted, seems correct…so the full posts showing on the page, probably come from some other code on that page. Look in your template for another query somewhere.
try using the wp_reset_query(); after the endwhile
Thanks that got it.
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".