Skip to:
Content
Pages
Categories
Search
Top
Bottom

Order by Alphabetical for groups

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

  • shanebp
    Moderator

    @shanebp

    Groups Loop


    <?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) . 'type=alphabetical' ) ) : ?>


    goecochic
    Participant

    @goecochic

    Were do save the loop.php file?

    wp-content/plugins/bp-themes/bp-default/groups I saved there as loop.php how do I serve it up in the browser/

    Thank you for you for support.


    shanebp
    Moderator

    @shanebp

    There is no template called loop.php

    Unless you’re are explicitly using the BP default theme, you should be using this file
    buddypress\bp-templates\bp-legacy\buddypress\groups\groups-loop.php
    And creating a template overload of that file and making your changes in the overload.


    goecochic
    Participant

    @goecochic

    I put the groups-loop.php modified with

    <?php if ( bp_has_groups( bp_ajax_querystring( ‘groups’ ) . ‘type=alphabetical’ ) ) : ?>

    in this folder:

    wp-content/themes/relativity/buddypress/groups/groups-loop.php

    It is still default “last activity”


    goecochic
    Participant

    @goecochic

    wp-content/themes/relativity/buddypress/bp-templates/bp-legacy/buddypress/groups/groups-loop.php

    I just created these files with no luck either…


    shanebp
    Moderator

    @shanebp

    Please use the code button when posting code.

    This works for me:
    <?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) . 'type=alphabetical' ) ) : ?>

    If you copy & paste, make sure the single quotes ‘ aren’t changed to something else, like `

    This is the correct path: wp-content/themes/relativity/buddypress/groups/groups-loop.php


    goecochic
    Participant

    @goecochic

    Seems to work on my phone, but not showing on browsers on computer even after deleting history/cache.


    goecochic
    Participant

    @goecochic

    I downloaded new Firefox and it came up “Last Active”..

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Order by Alphabetical for groups’ is closed to new replies.
Skip to toolbar