Forums

Join
bbPress Support ForumsThemesMissing Template Function ?

Info

Missing Template Function ?

  1. Hi

    Probably me being blind, but I could find a function that returned the post authors website url.

    In my theme I didn't want the username to be a hyperlink (in post.php), I wanted to add buttons, for profile, website, & PM.

    I wrote one to get my tests working.. but is there an "official" way ?

    function post_author_url() {
    if ( get_user_link( get_post_author_id() ) ) {
    echo get_user_link( get_post_author_id() ) ;
    } else {
    bb_get_option('uri');
    }
    }

  2. You must log in to post.