Hi Brajesh, I’m struggling again, in this example, how would I exclude activity updates from the view?
[su_box title=”Group Comments” style=”soft” box_color=”#a05060″ title_color=”#ffffff”][activity-stream object=groups primary_id=9 per_page=10 exclude=”activity_update” allow_posting=1][/su_box]
- Brajesh Singh on October 6, 2016 at 1:44 am #5879
Thank you for posting.
The shortcode does not have a way to exclude action but you can include multiple actions. In other words, the exclude is used for excluding activity ids and not for the activity action/type.
You can restrict the shortcode to limit to certain actions by using
action="activity_update,activity_comment, other type etc"
Hope that helps.
If I look at the standard drop down filter, I can see there are filter items for Updates, Group Updates, Group Memberships, Recent Gallery Updates, Show New Group File Directory, Show Group File Library Edits, Topics, Replies, New Docs, Doc Edits and Doc Comments. I’d like to display all of these except Updates, where would I get the right syntax for the action entry for your shortcode? Any ideas?
- Brajesh Singh on October 24, 2016 at 10:23 pm #6119
Please take a look at all the options here
The action filters are variable and depends on your installation. A New type can be added by any plugin. So, There is no fixed type. If you are loooking for the builtin activity type support by BuddyPess core, Please take a look at the dropdown or you may run this query in phpmyadmin
SELECT DISTINCT type FROM <code>wp_bp_activity</code> ;
That will give you all the filters used on your current site.
Hope that helps.
You must be logged in to reply to this topic.