Skip to:
Content
Pages
Categories
Search
Top
Bottom

Determine Profile Template File by Member Type

  • @caldwellysr

    Participant

    Looking at this page I can see how to style members profile pages. However, this information is obviously a little bit dated. I’m using 2.2 beta and specifically using ‘member_types’ and I’m wondering if it’s possible to determine which buddypress template file is used by the member type.

    For example I have 3 member types (user/bar/admin) and I want the Users to have a different profile than Bars because they have entirely different functionality. I suppose in /buddypress/members/single/index.php I could filter my html output by running a switch on bp_get_member_type(/*current user ID*/) but I was hoping there was a more elegant solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @henrywright

    Moderator

    To my knowledge, this isn’t built in to the current template hierarchy.

    Ref:

    Template Hierarchy

    You could open a ticket on Trac requesting the enhancement (try searching open tickets first to make sure it isn’t already planned).

    https://buddypress.trac.wordpress.org

    @martni

    Participant

    Did you find a clean solution to select which buddypress template file is used by the member type?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Determine Profile Template File by Member Type’ is closed to new replies.
Skip to toolbar