WordPress.org

Support

Support » How-To and Troubleshooting » Link to Authors posts within Buddypress Members_Header.php

Link to Authors posts within Buddypress Members_Header.php

  • 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?

  • The topic ‘Link to Authors posts within Buddypress Members_Header.php’ is closed to new replies.