Skip to:
Content
Pages
Categories
Search
Top
Bottom

Trying to get the profile URL for a given WordPress ID

  • Hi Guys

    I am the author who looks after http://wordpress.org/extend/plugins/author-avatars and I have been asked to add the option to link to bbpress profile verse the wordpress profile

    Got my bit working

    untill I got to here

    if (function_exists('bb_get_profile_link')) {
        $link = bb_get_profile_link('id='.strval($user->user_id));
    }
    

    and found that I am get “undefined function bb_get_profile_link()” as this is a post/page and not a bbpress page so my guess that bbpress code is not loaded.

    So what is the best way to get the profile URL / load this function?

    Many thanks

    Paul

    • This topic was modified 5 years, 11 months ago by  Paul Bearne. Reason: typo
    • This topic was modified 5 years, 11 months ago by  Paul Bearne.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar