Force WP loop to show last topics
-
This https://bushtanic.com/ is my website.
On the frontpage, running the
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <tr> <td height="97" style="padding:14px 0px 12px 0px;"> <?php if (function_exists('gkl_postavatar')) gkl_postavatar('post_icon', '', ''); ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/mark_0_1.gif" alt="" style="margin:0px 6px 0px 0px;" width="3" height="6"> <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b> <p align="justify"><?php the_excerpt(); ?> </td> </tr> <tr> <td style="background:url(<?php bloginfo('stylesheet_directory'); ?>/images/point_x1.gif) left top repeat-x;"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" width="1" height="1" alt=""></td> </tr> <?php endwhile; else: ?> <?php _e('Sorry, no posts matched your criteria.'); ?> <?php endif; ?>
code will show the excerpts of the last 3 posts posted.
But if you go to a specific page, say https://bushtanic.com/uncategorized/horrible-internet-dating-experiences-part-i/,
it no longer shows the last 3, but only the one you’re viewing.
How do I force it to act like it does on the front page?
Thanks
- The topic ‘Force WP loop to show last topics’ is closed to new replies.