I’ve created a template called ‘taxonomy-gp_categories’, which gets called when I visit a custom taxonomy archive, however when I call the loop in this template, it doesn’t think I have any posts (it skips the if(have_posts()) and executes the else {}).

My custom post type has ‘has_archive’ => true, and when I go to the archive page for the post type I see the archive, it’s just the taxonomy archives that don’t work.

Is there something in the framework or theme that might be causing this?