This topic has 12 replies, 2 voices, and was last updated 7 years by Radu.

  • Author
  • #212704
     AlexCiubotaruBC
    Participant

    Hello,

    How can I set up the default option of “ORDER BY” filter on members page from “Last Active” to “Alphabedical”?

    *ss in description

    #212709
     Radu
    Moderator
    Not marked as solution
    #212719
     AlexCiubotaruBC
    Participant
    Not marked as solution
    #212854
     Radu
    Moderator
    Ok, the next its the solution reply see it Hello, you would need to edit it at the child theme, Go to website files and find wp-content/themes/kleo/buddypress/members/members-loop.php Copy the file and go to wp-content/themes/kleo-child , create a new folder, call it buddypress, then inside buddypress, another folder called members then paste the file inside. Edit the file: Find:
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
    
    Replace with
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . '&type=alphabetical' ) ) : ?>
    
    Cheers R
    #213047
     AlexCiubotaruBC
    Participant
    Not marked as solution
    #213056
     Radu
    Moderator
    Not marked as solution
    #213111
     AlexCiubotaruBC
    Participant
    Not marked as solution
    #213278
     Radu
    Moderator
    Hi, The snippet for me it works without any error Not sure why you get white page.. Try to switch off child theme then check. Try to re-upload theme files. Cheers R
    #214721
     AlexCiubotaruBC
    Participant
    Not marked as solution
    #214725
     AlexCiubotaruBC
    Participant
    Not marked as solution
    #214769
     Radu
    Moderator
    Not marked as solution
    #214786
     AlexCiubotaruBC
    Participant
    My child theme is istalled and active. I created the file as you said but still opening the list filtered by "Last Active". :(
    #214829
     Radu
    Moderator
    Hi, The order of the members it's effectively on alphabetically order right ? On my local end using this method : https://archived.seventhqueen.com/forums/topic/default-option-of-order-by-filter-members-page/#post-212854 they are listed alphabetically (check it, it should be) and also the filter should be set also to alphabetical by default, since those are separate things, filter shows what it's first in the select You will have to copy also this file: wp-content/themes/kleo/buddypress/members/index.php into child theme wp-content/themes/kleo-child/buddypress/members/index.php and in child perform operation shown in the screenshot. If you cannot follow those, i will do those for you to can solve your issue, anyway following step by step this should be achievable easily. Cheers R
Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?