WordPress.org

Ready to get started?Download WordPress

Forums

Link to Authors posts within Buddypress Members_Header.php (1 post)

  1. 3rdaxis
    Member
    Posted 9 months ago #

    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 get this link working?

Reply

You must log in to post.

About this Topic