• Currently, I have author.php template file which generates author profile page. but if authors don’t have any posts then it returns 404 error.

    Following are the steps I took to debug the problem:
    1. Template file that is used to generate author page with 1 or more than 1 post – author.php
    2. Template file that is used to generate author page with no post – Does’t exist

    How can I debug the issue further and fix it?

Viewing 1 replies (of 1 total)
  • I’m thinking this is a theme file issue. The author should have a profile page once created.

    I’m not sure this is a real problem but you could create an author.php that gracefully fails if the author has no posts. Or else calls a second author.php (with a slightly different name) to show the author info then state the author has no posts.

    Alternatively, maybe you as admin could post in their name some sort of placeholder post which might help guide them further to posting on their own. Look at the verbiage in the default post in a new install for ideas.

Viewing 1 replies (of 1 total)
  • The topic ‘How to create author page for authors with no posts’ is closed to new replies.