Skip to:

bp_has_forum_topics() site-wide vs. groups question

  • briancostea


    I have a buddypress installation that leverages both the side-wide and group forums. I am trying to create a plugin that lists the most popular or most recent forum posts but when I create a loop using bp_has_forum_topics() and the filters, it only returns forum topics from the group forums and not from the site-wide forums.

    How would I:
    A) Get the topics for both the site-wide and group forums?
    B) Get the topics for just the site-wide forums and then seperately get them for the group froums?

    Loving Buddypress and thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • For sitewide, you need to use bbPress’ template API. I don’t have the specifics to hand, but I suggest you start by lookin at or ask on the forums.



    thanks for the response. unfortunately, is pretty much useless. here’s where i am so far in case it helps anyone else.

    `if ( bbp_has_topics( array( ‘meta_key’ => ‘_bbp_reply_count’, ‘meta_value’ => ‘1’, ‘meta_compare’ => ‘ ‘date’, ‘show_stickies’ => false ) ) ) {
    while ( bbp_topics() ) {
    bbp_the_topic(); ?>
    <a href="” title=””>

    ’14’ ) ) ); ?>
    <?php if ( !bbp_is_forum() || ( bbp_get_topic_forum_id() != bbp_get_forum_id() ) ) printf( __( 'in: %2$s‘, ‘bbpress’ ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?>


    i am still researching to see what parameters i can pass the bbp_has_topics since there doesn’t seem to be documentation readily available. who would need documentation, right?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bp_has_forum_topics() site-wide vs. groups question’ is closed to new replies.
Skip to toolbar