Skip to:
Content
Pages
Categories
Search
Top
Bottom

Displaying custom user type if in group


  • GSC-Dev
    Participant

    @gsc-dev

    I’m using buddypress user account pro and have created 2 different user types ‘coach’ and ‘athlete’

    I’ve also created a custom tab in my groups nav menu titled ‘Coaches’

    http://www.dev.globalsportcoach.com/groups/nfl/COACHES/

    I’ve been able to add the buat shortcode to the tab which will display all coaches on the site however i’d like to only display the coaches that are part of each group eg. only display NFL coaches in the NFL group using an if statement or similar, can anyone help me out?

    function display() {
    echo do_shortcode(‘[buatp user_type=”coach”]’);
    }

  • The topic ‘Displaying custom user type if in group’ is closed to new replies.
Skip to toolbar