Returning BP author/profile link with [display-posts] shortcode plugin
Using the following plugin to display posts on various indexes around my site:
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!
- The topic ‘Returning BP author/profile link with [display-posts] shortcode plugin’ is closed to new replies.