kandsadv
Member
Posted 1 month 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!
What are you using to generate the list of recent posts?
kandsadv
Member
Posted 1 month ago #
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.
kandsadv
Member
Posted 3 weeks 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) : ?>
- "><?php echo $p->post_title ?>
<?php endforeach; ?>
<?php endif; ?>
</div>