BuddyDev

Search

[Resolved] Shorting the members loop for BuddyPress Featured Members plugin

  • Participant
    Level: Enlightened
    Posts: 71
    Lefteris on #46212

    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.

    Kind Regards,
    Lefteris

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #46228

    Hi Lefteris,
    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.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 71
    Lefteris on #46330

    Hello Brajesh,

    Thank you very much for your kind help.
    Please let me know with the update.

    Kind Regards,
    Lefteris

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #46365

    Hi Lefteris,
    Thank you for the patience.

    1. Please upgrade to 1.1.3

    2. In your code, Please add one more parameter enable_type=1
    e.g

    
    <?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?

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 71
    Lefteris on #46387

    Hello Brajesh,

    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.

    Kind Regards,
    Lefteris

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #46394

    Hi Lefteris,
    Thank you for confirming the fix.

    Please open a new topic for the posts list question.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 71
    Lefteris on #46536

    Hello Brajesh,

    One more question about the slider shortcode of feautered members 🙂 Could i also use the parameter enable_type='1' to short the members by the newest registered first on the slider?

    Kind Regards,
    Lefteris

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #46537

    Hi,
    I don’t think that it will work with the shortcode.
    We will need to update the shortcode if we want to utilize this.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 71
    Lefteris on #46581

    Hello Brajesh,

    Thank you for your reply. I don’t want to bother you with this minor issue. Please do let me know when you will push an update 🙂

    Kind Regards,
    Lefteris

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #46582

    Thank you.
    I will push the update sometimes this week.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved