I'm trying to use my category.php file to display all posts of a certain custom post type (say "Company") with a given category. However, when I try to use it by navigating to domain.com/category/company/category1, which is the link automatically generated by wp_list_categories(), no posts appear.
The code I'm using is:
<?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'type-company', get_post_format() ); ?> <?php endwhile; ?>
What am I doing wrong?