Forums

Join
bbPress Support ForumsThemesHow To Add a Link To The Latest Post In a Topic

Info

How To Add a Link To The Latest Post In a Topic

  1. Sometimes forum topics are so interesting that they get many replies and bbPress v0.9.0.2 does not have any links to the latest reply when you go to a topic.

    So I created one as you will see when you go to any of the topics in the Set Forever forum.

    Here's a link to the code update to the Kakumei theme for the topic.php file:
    http://www.setforever.org/blog/2008/bbpress-v0902-how-to-add-a-link-to-the-latest-posted-reply-message-in-a-topic/

  2. The full template can be confusing to non-coders.
    This concept has been covered several times around here, it's quite simple.

    Just replace
    <?php topic_last_poster(); ?>
    with
    <a href="<?php topic_last_post_link(); ?>"><?php topic_last_poster(); ?></a>
    in the front-page.php, forum.php, view.php and tag.php templates

  3. You must log in to post.