Skip to:
Content
Pages
Categories
Search
Top
Bottom

Ability to use get_profile_tab_link() function


  • johnmontfx
    Participant

    @johnmontfx

    Apologies if this is too basic a question, but I’d like to use the get_profile_tab_link() function as part of a bbPress template. The idea is creating a quick link to the member’s favorites. However, I’m getting the dreaded “Call to undefined function” in php when attempting to use this.

    BuddyPress (2.5.2) is loaded (check with bp_is_active( ‘xprofile’ )) and I’m using bbPress version 2.5.8 and WordPress version 4.2.2. Is there a component which needs to be active that I don’t have active? I admit that part of this is that I don’t fully understand the relationship between the bbpress and buddypress forums as there seems to be a lot of overlap and history between them.

    Thanks for any insights…I’ve spent hours trying to figure this out….

Viewing 3 replies - 1 through 3 (of 3 total)

  • johnmontfx
    Participant

    @johnmontfx

    And to be clear — I’d like to be able to use the get_profile_tab_link() function anywhere on the site…not just bbPress pages as I psted…


    shanebp
    Moderator

    @shanebp

    If you want a link to the logged in user’s BP profile, use
    bp_loggedin_user_domain()
    Something like:
    href="<?php echo bp_loggedin_user_domain() . '/favorites'; ?>"


    johnmontfx
    Participant

    @johnmontfx

    That’s brilliant — I missed that and it’s much simpler than I was trying.

    Really appreciate it, Shane

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar