I am using your activity shortcode plugin and I have a question. Is there any way to show activity updates from a certain user role and from groups as well?
I am currently using this shortcode, but for some reason it is only showing group posts, the id=1 is not working. Perhaps I have the syntax wrong.
[activity-stream object=groups user_id=1]
If possible is there a way to do this with a role instead? Something like:
[activity-stream object=groups user_role=subscriber]
I am sorry but the answer will be no. BuddyPress default activity does not allow filtering activity based on roles, and this plugin acts as a wrapper for the default activity.
It is doable by fetching the user_ids for the selected role and passing in the user_id parameter but that is beyond the scope of the activity shortcode plugin.
About your usage of shortcode:- object=”groups” is used for group component.
The topic ‘ [Resolved] Buddydev Activity Shortcode For User Roles?’ is closed to new replies.