-
shanebp replied to the topic [Resolved] Extend bp_members() – Custom Query in the forum Creating & Extending 11 years, 1 month ago
Instead of writing new queries to manipulate data after the main user query has run, use this filter to make your adjustments before the main query:
bp_pre_user_query_construct in bp-core-classes.phpAnd run it via a conditional based on the page being viewed.
Then your pagination data will be what you want. -
Henry replied to the topic [Resolved] Extend bp_members() – Custom Query in the forum Creating & Extending 11 years, 1 month ago
Hey @zintax
Have you tried hooking to the
bp_ajax_querystring
filter? This is a good way of modifying both the loop and the pagination.Hope this gives you a few ideas:
function modify_loop_and_pag( $qs=false, $object=false ) {// comma sep list of users to exclude from loop and pagination
$users = '1,2,3';if ( $object !=…[Read more]
@zintax
Not recently active