Viewing 2 replies - 1 through 2 (of 2 total)
  • Anyone got the same problem ??
    Can’t figure out what is causing this on that website, and not on the test one with the same configs…

    The problem was that the query in the author.php was querying only the post_type=’post’. Even if I added the arguments in the query_posts function, it would still query only the post.

    To fix it, only add this code

    add_filter('parse_query', 'parse_query_handler');
    function parse_query_handler($q){
    	if (isset($q->query_vars['author_name']) && $q->query_vars['author_name'] != ''){
    		$q->query_vars['post_type'] = array("photos", "videos", "nouvelles");
    	}
    	return $q;
    }

    Replace the array(“photos”, “videos”, “nouvelles”); with your custom post types.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Author template page 404 error on multiple pages’ is closed to new replies.