Tagged: BFM BuddyPress Featured Member
Hello, guy, I am facing a little problem with BuddyPress Featured Member plugin I have added some members as a featured.
I have added a widget in footer. Problem is that when I am in members page featured member list show but when I go to next page though members pagination footer Featured members also change to remove featured members pagination
Please have a look into :
https://www.taagme.com/dev/members/Hi Nabeel,
Thank you.
Since we use the members loop, It does get affected. I will put a fix about pagination today/tomorrow.Regards
BrajeshKindly update us about the pagination if it has been fixed or not
SO we can continue our workHi Nabeel,
I am sorry but we won’t be able to include the fix in the plugin. Since it only happens on members directory, We can think of as a regression.I will explain why.
The problem:- We use bp_has_members() the same loop that BuddyPress uses on member directory. BuddyPress does not have a proper way to pass the pagination arguments. It uses the “page_arg” variable to keep the name of the pagination query string variable name. That is a super bad choice as it limits the customization.
If we change the ‘page_arg’ in our loop, We will be able to work with BuddyPress’s loop but that will break pagination for us on our shortcode pages.
In your case, Please open bp-featured-members/templates/members-loop-list and members-loop-slider
You will see a line like this
<?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . '&scope=featured') ) : ?>
Please change it to
<?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . '&scope=featured&page_arg=somethingrandom') ) : ?>
That should fix it.
Regards
Brajesh
The topic ‘ [Resolved] BFM Issue with pagination’ is closed to new replies.