Skip to:
Content
Pages
Categories
Search
Top
Bottom

Creating Profile Tabs

  • Avatar of wordpressfan
    wordpressfan
    Participant

    @wordpressfan

    I’m trying to create tabs in my profile using this construct from profile/edit.php:

    <div class="content-header"></p>

    <p> <ul class="content-header-nav">

    <?php bp_profile_group_tabs(); ?></p>

    <p> </div>

    But instead of editing profile fields via bp_profile_group_tabs(), I want to let members display certain information, such as activity, friends, groups or wire. I’ve created the tabs, but don’t understand how to launch the various call to locate_template. Here is the attempt that so far doesn’t work:

    <div class="content-header">

    <ul class="content-header-nav"></p>

    <p> <li class="current" title="Activity"><?php locate_template( array( 'profile/profile-activity-header.php' ), true ) ?>Activity</p>

  • Friends
  • Groups
  • Wire
  • <p></div>

    How do I create links to the various templates?

You must be logged in to reply to this topic.