Forums

Recent Posts List won't Link (5 posts)

  1. kandsadv
    Member
    Posted 2 years ago #

    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!

  2. esmi
    Theme Diva & Mod
    Posted 2 years ago #

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

  3. kandsadv
    Member
    Posted 2 years ago #

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

  4. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    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.

  5. kandsadv
    Member
    Posted 2 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic