Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Activity loop does not work properly

@shanebp

Moderator

Please do not bump threads.

You omitted an ‘&’ in this:
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ).'&scope=just-me,friends,groups,favorites,mentions&per_page=15&action=friendship_created,joined_group,activity_update' ) ) : ?>

You’re including all the default params for scope. Why include them at all?

There are other ways of filtering the activity loop:
https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/
https://codex.buddypress.org/plugindev/add-custom-filters-to-loops-and-enjoy-them-within-your-plugin/

Skip to toolbar