Skip to:
Content
Pages
Categories
Search
Top
Bottom

"View all posts by link" works on some pages and not others

  • Avatar of 3rdaxis
    3rdaxis
    Participant

    @3rdaxis

    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?

    Thanks

You must be logged in to reply to this topic.