(Resolved) How to modify bp_has_forum_topics correctly?
I’ve built my first custom widget for BuddyPress which displays the latest three group forum topics. I want this widget to display the same topics regardless of which page the user is currently viewing. As the bp_has_forum_topics works, it automatically adjusts to viewing the current users forum topics when viewing a members page, and when viewing a specific group, it shows the group forum topics only for this group.
I want to override the above values when viewing a specific group/member and have tried using the code below, but still the same default values are returned (thus when I view a group which has no forum posts, the widget shows “No forum topics found” and so on). I’m sure this is easy to fix, any ideas?
Thanks in advance!
- The topic ‘(Resolved) How to modify bp_has_forum_topics correctly?’ is closed to new replies.