Support » Fixing WordPress » Recent Posts List won’t Link

  • My list of recent post located in the footer of my site won’t link to the post when clicked. I’m not familiar with php so I don’t know what to look for, I’m guessing it is a php issue but don’t know. If you have any suggestions please let me know. The site is


Viewing 4 replies - 1 through 4 (of 4 total)
  • What are you using to generate the list of recent posts?

    Not really sure, I had the template created for me.

    Try looking in footer.php in your theme. Without knowing what, if any, custom code is involved, there’s not a lot of help people can provide. For publishing larger blocks of code, use the WordPress pastebin and post the pastebin link here.

    Does this help?

    <div class=”recent-post”>
    <h3>Recent Posts</h3>
    <?php $recent_posts = get_posts(‘numberposts=10’); ?>
    <?php if(count($recent_posts) > 0) : ?>

      <?php foreach($recent_posts as $p) : ?>

    1. “><?php echo $p->post_title ?>
    2. <?php endforeach; ?>

    <?php endif; ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Recent Posts List won’t Link’ is closed to new replies.