It takes the value=”” attribute and, from memory, uses that for the type= and sometimes the action= arguments for bp_has_groups. In the default theme, It does this in bp_dtheme_ajax_querystring()
thanks Paul, now it is more clearly. Taking into account that in bp_dtheme_ajax_querystring() I see only type, scope and action parameters, do I understand correctly that there is no way to add simple filter which would return loop with specific IDs, e.g. `bp_has_activities( ‘object=groups&primary_id=…, …’)`?
“do I understand correctly that there is no way to add simple filter which would return loop with specific IDs”
@janismo is the ‘include’ parameter what your after?
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
`include optional
Pass an activity_id or string of comma separated ids to show only these entries.
Default value: false`
According to the codex, include=1,2,3 should only show activities with the Activity ID’s of 1, 2 and 3.
hi @ChrisClayton, bp_has_activities( ‘object=groups&primary_id=…, …’) is a working solution for custom loop. Problem is that I need this loop to appear as a drop down filter in site wide activities, e.g. Everything, Updates, etc. That’s why I want to add this “, but cannot get how to tell it to use “object=groups&primary_id=1”, and if it is possible at all, since, as Paul mentioned, bp_dtheme_ajax_querystring() uses just few parameters.
hi, getting back to my thread, could anyone please tell if it is possible or not?
basic idea is to show activities of the specific groups in the site wide loop (default one). thanks!