Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display recent group topics in sidebar

  • Avatar of lindsayanng
    lindsayanng
    Member

    @lindsayanng

    I need to figure out how to pull the most recent topics from two specific groups on my page.. I have made it so only owners can create a group and I really only need TWO groups.. That part is done

    So now I need to pull all recent topics from the groups into a sidebar widget (preferably separate)

    So like this

    Group 1

    -topic 1

    -topic 2

    -topic 3

    Group 2

    -topic 1

    -topic 2

    -topic 3

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    If you’re comfortable with the loop, check out the bp_has_forum_topics() function located in /buddypress/bp-forums/bp-forums-templatetags.php.

    Unfortunately this isn’t documented in the BP codex, but if you check out /bp-themes/bp-default/forums/forums-loop.php, you should have a good idea of how to construct a recent topics loop.

    Hope that gives you a few pointers to go on.

    Avatar of lindsayanng
    lindsayanng
    Member

    @lindsayanng

    Yep.. that helps. I guess i didn’t realize that the group discussions were actually FORUM elements.. but that makes sense. Thanks a bunch

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.