Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Add filters to if ( bp_has_activities( bp_ajax_querystring( activity )) )


Jean-Marc
Participant

@chefouvi

@revolutionfrance Just wondering if this won’t work! Why don’t you just add the filter function directly into your theme file exactly where u want the filter to apply right before you call the
`<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' )) ) :?>`
I mean something like this:
`
<?php
function my_query_filter_new ( $query_string ) {
$query_string .= ‘&per_page=10’;
return $query_string;
}
add_filter( ‘bp_ajax_querystring’, ‘my_query_filter_new’ );
if ( bp_has_activities( bp_ajax_querystring( ‘activity’ )) ) :?>
`
I haven’t tried this but I don’t see why it wouldn’t work.
I hope this helps.

Skip to toolbar