Skip to:

Just display Forum Name and Topic Title?

  • Hi there. I would like to show recent topics on my website homepage from my forum. I’ve accomplished this already by using the code below. What I can’t figure out is how to tweak this code so that it will display the forum name and topic title only, not the author and all the unnecessary wording (“Started by ___ in:”). What I would like it to look like is a long list with each item presented in the “Forum Name | Topic Title” fashion.


    Italian Food | What’s Your Favorite Pasta Dish?

    Japanese Food | Good Sushi Bars in NYC

    <?php if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 8 ) ) )

    bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>

Viewing 1 replies (of 1 total)

  • Lynq


    You could create a new loop-topics.php inside your theme file, then edit that and give it a new name like “loop-new-topics.php”.

    bbp_get_template_part( 'bbpress/loop', 'new-topics' );

    Then edit that file to get the look that you want.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar