Skip to:
Content
Pages
Categories
Search
Top
Bottom

by default sort groups alphabetically

Viewing 4 replies - 1 through 4 (of 4 total)

  • Prashant Singh
    Participant

    @prashantvatsh

    Hi

    Please revert this

    I basically reordered the options in the php file. and It worked to some extent.

    and put the following code in your bp-custom.php file or child theme’s functions.php file:

    add_filter( 'bp_nouveau_get_groups_filters', function( $filters, $context ){
    	return array_reverse( $filters, true );
    },10,2);

    I hope this will help you.


    baedyllion
    Participant

    @baedyllion

    hello , thanks for the reply.

    I followed your suggestion and reverted my actions and added the code you provided in bp-custom.php file.

    the weird thing is my previous actions were not reverted even though I restrored the default settings of buddypress. as an admin I see the groups in alphabetical order but as a subscriber it is sorted by last activity.


    Prashant Singh
    Participant

    @prashantvatsh

    I have tested from both the users and also as a guest, groups are getting sorted alphabetically.

    Please try to clear your cache. Also, check if everything you did for sorting is reverted except the code which I gave.


    baedyllion
    Participant

    @baedyllion

    thank you very much. I will reinstall the files and try again with the code. will post the result.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar