• kwerri

    (@kwerri)


    I have a simple question. I’ve noticed that if I have a link constructed like this:

    https://www.mysitename.com/author/myname/

    Clicking on this will take me to all the posts made by the author whose name is myname.

    I’d like to have such a link in the profile page of myname, but I don’t know which file in the theme to edit, and how to edit it. I’m using Atahualpa 3.4.6.

Viewing 4 replies - 1 through 4 (of 4 total)
  • MichaelH

    (@michaelh)

    Thread Starter kwerri

    (@kwerri)

    Hello Michael,

    I’m a bit confused here. Should I install the PJW user meta plugin first, then do the code customisation?

    MichaelH

    (@michaelh)

    You would need to make a plugin from the example Peter provided.

    Thread Starter kwerri

    (@kwerri)

    I forgot to add that I’m using BuddyPress.

    In the end, I fixed the problem my updating the following files in my theme:

    members/members-loop.php (in the bp_the_member() loop, to get the link in the list of members);

    members/single/member-header.php (in the item-meta div);

    <span class="author-posts">
      <a href="<?php echo get_author_posts_url(bp_get_member_user_id()); ?>">Read all posts by <?php echo bp_member_name(); ?></a>
    </span>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding link to author's posts on profile page’ is closed to new replies.