WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] the_author_posts_link() (9 posts)

  1. whdr02
    Member
    Posted 5 years ago #

    When I use this tag in the loop of my article it doesn't link to the the authors posts but to the home page.

    http://improvethequality.com select any article to see the attribution link.

  2. whdr02
    Member
    Posted 5 years ago #

    The code actually reads:

    This article written by <?php the_author_posts_link(); ?>

    The link it attempts is http://www.improvethequality.com/author/jason/ but it then goes to the front page.

  3. MichaelH
    Member
    Posted 5 years ago #

    See if updating your permalink structure resolves the problem.

  4. whdr02
    Member
    Posted 5 years ago #

    I tried it with the default and it didn't help. Do suggest a particular structure?

  5. MichaelH
    Member
    Posted 5 years ago #

    Not necessarily another structure, but do "Saving Changes" with your existing default structure. Note that with the default structure I would expect your link to be something like:
    http://www.improvethequality.com/?author=1

  6. whdr02
    Member
    Posted 5 years ago #

    When I changed it to the default the link was "http://www.improvethequality.com/?author=2" but the same result of going back to the home page in stead of an author page.

    I put it back to my custom structure after that and saved again. So, it is back to the way it started.

  7. MichaelH
    Member
    Posted 5 years ago #

    Guessing either something in your .htaccess or a conflict from a plugin (or theme).

  8. whdr02
    Member
    Posted 5 years ago #

    That is what I thought as well, I have deactivated all the plugins I thought could affect it one at a time. The theme works on my dev site. In fact this whole thing works on my local dev site. (it isn't a perfect copy of my real site) I just can't find out the difference.

    I will look into the .htaccess file.

  9. whdr02
    Member
    Posted 5 years ago #

    It turned out to be the Robots meta Plugin.

    I wouldn't have guessed that one.

Topic Closed

This topic has been closed to new replies.

About this Topic