Skip to:
Content
Pages
Categories
Search
Top
Bottom

Returning BP author/profile link with [display-posts] shortcode plugin

  • Avatar of teeray
    teeray
    Participant

    @teeray

    Hi there,

    Using the following plugin to display posts on various indexes around my site:

    http://wordpress.org/plugins/display-posts-shortcode/

    I have searched the documentation and have found the function to customize the shortcode and display the author link. However, when I attempt to return it using the following code, it links to the current page instead of the buddypress profile page.

    $author = '<div class="author"><a rel="author" href=' . bp_core_get_userlink( $just_link ) . '>' . get_the_author() . '</a></div>';

    I think I’m close, I just need some assistance with the correct syntax. Help much appreciated!

You must be logged in to reply to this topic.