[Resolved] Link to authors posts in members_header
Iv spent hours trying all kinds of code trying to get a link to an authors posts displayed in the members_header.php.
Some code iv tried.
<a href="<?php echo get_author_posts_url(bp_get_member_user_id()); ?>">Read all posts by <?php echo bp_member_name(); ?></a>
<p>Other posts by <?php the_author_posts_link(); ?></p>
<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>
Can somebody help me display a link for each authors posts that i can place in the members_header.php?
- The topic ‘[Resolved] Link to authors posts in members_header’ is closed to new replies.