custom post types – How to show CPTs in term archive
I attached default taxonomy “category” to a “story” custom post type, when I register it:
'show_in_rest' => true, 'show_in_feed' => true, 'taxonomies' => ['category'], 'has_archive' => true,
Then, I try to show “story” posts with a category term using default template:
But the template only shows default posts instead CPT “story” AND default posts with that term.
How should the CPT “story” be included in the default wp_query in the term archive template?