Include related posts on a page

You could easily modify the page template of your theme to include a section that reads “Related Posts” at the bottom and then execute a simple PHP query to get posts as follows:

<?php query_posts('category_name=wordpress&showposts=5'); ?>
<?php while (have_posts()) : the_post(); ?>
   <li>
      <a href="https://wordpress.stackexchange.com/questions/10085/<?php the_permalink(); ?>">
      <?php the_title(); ?>
      </a>
   </li>
<?php endwhile; ?>

You’d need to tweak the category accordingly, and you could always format the post listing the way you want.

Leave a Comment