WordPress.org

Forums

pretty links don't go to author.php when author is post-less (2 posts)

  1. jujubeansrgr8
    Member
    Posted 8 years ago #

    I have a list of authors. Some of these authors do not have posts but I want to link to their author page anyways just to show their info and maybe a pretty picture or something. I added a parameter to my list_authors called $force_link so that even post-less authors will get a link.

    Because I have pretty links, the link it creates is something like: http://www.website.com/author/authorname/

    When clicked, this link goes to the author.php template page UNLESS the author is post-less in which case it goes to the 404 page.

    And if I make a link like http://www.website.com/?author=9 , that link will take me to the author.php template regardless of whether the author has posts or does not have posts.

    Though I could just change the links of post-less authors to not be pretty, I don't understand why my pretty links can't just work.

  2. Meerblickzimmer
    Member
    Posted 7 years ago #

    Hey!

    Has the same problem. Has anyone en solution for the problem - i am intressted in.

    Greetings!
    M

Topic Closed

This topic has been closed to new replies.

About this Topic