Wordpress: Author Archive page not found message displayed

I'm new user just signed up to wordpress site and when I try to navigate to author archive , it shows Page not found message.

Whilst for users with wordpress post count more than 1, Author Archive Page is displayed as expected.

Is there any plugin available to overcome this issue, thanks.

Note: I've narrated above from end user perspective, I'm the site admin anyway :slight_smile:

  • Predrag Dubajic

    Hey @George Mathew,

    Hope you're doing well today :slight_smile:

    I have checked your site and can see what you are referring to.

    Issue you are having is caused by the theme you are using, for author archive WordPress first searches for author.php in your root theme folder and if it doesn't exist it will use archive.php, so you will need to modify one of those two files to make this work.

    I would suggest checking default WP theme Twenty Fifteen archive.php file.
    In there you will see something like this:

    <?php if ( have_posts() ) : ?>
    	//code to list posts
    
    <?php
    // If no content, include the "No posts found" template.
    else :
    	//below code is used to call different template if user has no posts
    	get_template_part( 'content', 'none' );
    
    endif;
    ?>

    You see there's a condition there, if (have_posts()) with code below that to list posts, and further down you see else: condition, which means if there are no posts for that author it will do something else, in above case it will call different file that will show message Nothing Found.

    Hope this helps and let us know if you have any followup questions :slight_smile:

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.