Groups Loop
<?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) . 'type=alphabetical' ) ) : ?>
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.
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.
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”
wp-content/themes/relativity/buddypress/bp-templates/bp-legacy/buddypress/groups/groups-loop.php
I just created these files with no luck either…
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
Seems to work on my phone, but not showing on browsers on computer even after deleting history/cache.
I downloaded new Firefox and it came up “Last Active”..