Tagged: Activity Shortcode Plugin, buddydev
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]
- Brajesh Singh on December 10, 2015 at 7:09 am #1957
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.
- Brajesh Singh on December 10, 2015 at 1:56 pm #1971
Please try this
Does that work for you?
- Brajesh Singh on December 11, 2015 at 6:49 am #1978
Thank you for marking it as resolved. Closing the topic now.
The topic ‘ [Resolved] Buddydev Activity Shortcode For User Roles?’ is closed to new replies.