Skip to:
Content
Pages
Categories
Search
Top
Bottom

Groups page – order by, using url variable to select order

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

  • modemlooper
    Moderator

    @modemlooper

    Something like this BUT you will have load more issues as you need to set cookies for this (bp-groups-filter)

    function bp_filter_alpha( $retval ) {
        $retval['type'] = 'alphabetical';
        return $retval;
    }
    if( 'alphabetical' === $_GET['type'] ) {
        add_filter( 'bp_after_has_groups_parse_args', 'bp_filter_alpha' );
    }

    efrap
    Participant

    @efrap

    Thanks modemlooper. I saw a post of yours a few years back about adding a tab menu in groups directory page – this is a better solution for me , but I didn’t get it to work. I then got interested in boonebgorges Limit a bp_has_groups() loop code, but I need quite a different query for retreiving group ids found in custom posts metavalues – and that code is way above my level.


    efrap
    Participant

    @efrap

    I did manage to code that query in boonebgorge’s code. Now I need to link this meta_filter to a new menu tab. I am quite unsure how to achieve this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Groups page – order by, using url variable to select order’ is closed to new replies.
Skip to toolbar