Custom Page that Filters Groups
So I’ve created a plugin that allows the admin to change a group to be a “Featured” group through 2 radio buttons (featured and not featured)
It’s working great on the group page I have it set so that it will display an image if the group is featured / not featured.
MY QUESTION, is as follows:
I have a custom page that I would like to use the group-loop (i’ll make a custom loop) that filters out all groups that have the featured radio button set to “not featured”.
I was thinking just having an if statement, but that doesn’t seem to be working (or I just have no idea what to put).
Something along the lines of
<?php if ( bp_featured_group == "featured") : ?>
I know the code is very wrong but I am new to php and I wanted a bit of help.
- The topic ‘Custom Page that Filters Groups’ is closed to new replies.