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

  • kandsadv

    (@kandsadv)


    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 http://www.central-church.org.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    (@esmi)

    Forum Moderator

    What are you using to generate the list of recent posts?

    kandsadv

    (@kandsadv)

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

    esmi

    (@esmi)

    Forum Moderator

    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; ?>
    </div>

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