I created a custom taxonomy slug is ‘event_type’ and created terms like social, educational and religious. I want to have template page where I can show posts related to these terms. you can say I need to access this url: http://localhost/test/event_type/social/
How I can create a template for this and for this url too http://localhost/test/event_type/
This taxonomy is related to custom post type named as ‘event’
Any help regarding this
I think that what you’re looking for is in the Template Hierarchy. You should be able to use taxonomy-event_type.php to do exactly what you want with it.
I used a modified version of Justin Tadlock’s code at his blog which allows you to create single post templates based on category (slug and id), author or tag.
My modified code is below:
You would then add your new custom template files into /wp-content/themes/your-template-name/single, naming them accordingly.
Using this function you could create a template for a tag called featured within a custom taxonomy of event_types by creating a file called single-cat-featured.php