4 years, 6 months ago
I have this bit of code which works perfect on single.php. The result is
View all posts by(and the authors name)
This works and links the user name right to their posts.
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
<?php printf( __( 'View all posts by %s <span class="meta-nav"></span>', TEMPLATE_DOMAIN ), get_the_author() ); ?></a>
When I try to use the same code on members/single/member-header.php, the result is just
View all posts by
Can anyone help me with what is missing?
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service