I'm trying to show all post made by the author.
Code author.php
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if( get_post_type() == 'post' ) {?>
<?php } if( get_post_type() == 'post-type' ) {?>
<?php } else; endwhile;?>
<?php endif; ?>
But just shows the post_type "post".
authors.php
(note plural) orauthor.php
(note singular)?author.php
template file by default only shows posts of thepost
post-type. What have you done to filter the main query to display posts of other post-types?pre_get_posts
andis_author()
, and see if you can come up with a starting point.