bbpress-recent-posts
Code Snippets

Add Recent Topics to your BBPress Forums homepage

Lately I’ve had a couple of people ask me if it was possible to show the most recent topics on the forum homepage of their BBPress Forums. This is quite easy by adding the following snippet to functions.php of your active (child) theme.

You can see this in action on our PressCrew Community Forums. Enjoy!

Tired of having a slow BuddyPress site?

I'm constantly updating my BuddyPress Hosting Guide to help you get the most out of your hosting. SiteGround and WPEngine have proven to be fast and reliable but see my BuddyPress Hosting guide for a full overview of your options

 

About Bowe Frankema

Building communities on BuddyPress is something I am very passionate about. The decision to focus exclusively on BuddyPress projects over the last few years inspired me to share back some of the things I've learned here on BP-Tricks! You can find me on WordCamps & BuddyCamps across the globe and on Twitter! Follow me on Twitter

Discussion

5 responses to ‘Add Recent Topics to your BBPress Forums homepage

  1. Hi ,
    Thanks for the code.
    Can you please provide the short code so that i can list the recent topics the way we can see in recent topic widget.

    I just want the name of the topic to be listed and after clicking on it it should navigate on specific topic.

    Please find the example as below :)

    Recent Topics

    >Storage Disease
    >Basic Disease
    >Anticoagulation
    >Heart Failure
    >Respiratory Medicine

    Regards,
    Harsh

  2. (corrected email for replies notification)

    Do you have code that has this same functionality but where I can specify the Forum of the recent topics to pull from using the Forum ID?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">