I have the following setup:
- 3 posts:
post1
,post2
, &post3
- 2 categories:
cat1
&cat2
- 2 templates:
singe1.php
&single2.php
post1
andpost2
are assigned tocat1
post3
is assigned tocat2
post1
and post2
should use template1
and post3
should use template2
I have found this plugin: https://wordpress.org/plugins/single-post-template/installation/ but it is for every page separate.
Is there any way to relate the post template and the category?
single-category-name.php
templates using thesingle_template
filter.