I’m using BuddyPress Activity Shortcode and have the following shortcode on my site, however it isn’t showing new forum posts from the group, only group updates.
[activity-stream primary_id=4 per_page=3 pagination=0 action="activity_update,new_forum_post"]
If I delete the “action” part of the shortcode completely the new forum posts show, but then I also end up with other updates I don’t want in the stream, such as new members joining the group. As far as I know, you can’t exclude actions, so I can’t just exclude the new members joining updates, unfortunately. Therefore I need to work out how to include the new_forum_posts. Is there a different piece of code I should be using? Any information would be really appreciated.
Welcome to BuddyDev support forums.
I am sorry for the delayed reply.
The activity type for bbPress forums are diffent and that is causing you the issue.
Please try this
[activity-stream primary_id=4 per_page=3 pagination=0 action="activity_update,bbp_topic_create,bbp_reply_create"]
Let me know if it works for you or not?
Thanks again for this response. I’m not sure what is meant by “checking your activity table and querying for a list of distinct activity types” to be honest. If you are able to advise any further that would be awesome but I appreciate your responses so far, you’ve already helped me.
Thank you for the reply.
If you are comfortable with PhpMyAdmin, then please open your database in PHPMyAdmin and search for the activity table.
it should be something like this
wp_bp_activity or similar(with a different prefix)
You can run the following query then
SELECT DISTINCT(type) FROM <code>wp_bp_activity</code>
after replacing the “wp_bp_activity” with your actual table name. It will show you the list of activity types.
You must be logged in to reply to this topic.