Tagged: buddypress featured members, members loop
Hello great team 🙂
I am using your great plugin BuddyPress Featured Members and in my members loop i am passing scope=featured to bp_has_members().
<?php if ( bp_has_members(bp_ajax_querystring( 'members').'&scope=featured') ) : ?>
How can i short the featured members by the newest registered first? I tried something like this
<?php if ( bp_has_members(bp_ajax_querystring( 'members').'&scope=featured&type=newest') ) : ?>
but didn’t seem to work.
Any help would be appreciated.
- Brajesh Singh on August 30, 2022 at 7:07 am #46228
This is happening due to our oversight. we have overwritten the scope to alphabetical to make sure all the users appear even if the don’t have a last active time set.
I will have an update by tomorrow on a way to fix this.
- Brajesh Singh on September 6, 2022 at 8:08 pm #46365
Thank you for the patience.
1. Please upgrade to 1.1.3
2. In your code, Please add one more parameter enable_type=1
<?php if ( bp_has_members(bp_ajax_querystring( 'members').'&scope=featured&type=newest&enable_type=1') ) : ?>
Please let me know if that works or not?
Thank you for your response. It had worked perfectly.
I would like to ask you another issue that i am facing.
I would like to create a tab (nav_item) in every users profile that can display the custom post type of some events that are assigned to the user.
Your plugin https://buddydev.com/plugins/buddyblog/ can do that just fine, but i don’t need all this extra code for creating,editing,deleting posts. Only the display part. Is there a way i could use specific part of your code for this?
old conversation here https://buddypress.org/support/topic/resolved-show-posts-written-by-user-on-profile/
I would also need to manipulate the code a bit so that the tab is being created only for specific user roles (for example only for Editors).
Forgive me if i am creating a new topic inside another topic. I can create a new topic if needed.
- Brajesh Singh on September 7, 2022 at 9:49 pm #46394
Thank you for confirming the fix.
Please open a new topic for the posts list question.
- Brajesh Singh on September 17, 2022 at 6:38 pm #46537
I don’t think that it will work with the shortcode.
We will need to update the shortcode if we want to utilize this.
- Brajesh Singh on September 19, 2022 at 11:12 pm #46582
I will push the update sometimes this week.
You must be logged in to reply to this topic.