Thanks for the great plugin!
I’m trying to display the author in the shortcode and have that link to the author’s buddypress profile. I’m using the following code in my display_posts_shortcode_output filter, however it seems to want to link to the page it’s displayed on:
$author = '<div class="author"><a rel="author" href=' . bp_core_get_userlink( $post->post_author ) . '>' . get_the_author() . '</a></div>';
- The topic ‘Display Author with link to buddypress profile’ is closed to new replies.