Custom Post type category pages

I have a custom post type by the name of the event.

So Created a category page them for them like this →


Like this →

<?php get_header(); ?>
//and then the loop here
<?php get_footer(); ?>

But the individual category pages are not generating the posts only from those categories, but entirely all posts.

I think something needs to be fixed in the loop?

Read more here:: Custom Post type category pages

Leave a Reply

Your email address will not be published. Required fields are marked *