Excerpts code with different results on frontpage and simple page
-
Hi
I have this code:
<font size=4 color="#D0D0D0">SPONSORED LINKS</font> <?php $temp_query = $wp_query; ?> <?php query_posts('category_name=articles&showposts=5'); ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <ul> <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><?php the_excerpt(); ?> </li> </ul> </div> <?php endwhile; ?>
I try to post the last 5 excerpts from the respective category on a page. When i use it on the frontpage, the results are ok, you can see them at the bottom of the page Frontpage
When i am using it on this page FF, it first displays the excerpts, which is ok, then it shows the posts too. What should i do to make it work?
Thank you
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Excerpts code with different results on frontpage and simple page’ is closed to new replies.