Get a different template for the post
-
Hi everyone,
I have a question about the page “single.php”. I would like to place a different templace depending the category I want to read.
For example, I have these two categories (Sports) & (Hunting).
So that it.. When I’m browsing the category Sports on the Sports page (my template is working) and I want to read [x] post and I press “Read more”, I fall on the “Hunt” template because the Hunt template is the default one.
I discovered that I can place something like this
get_header(‘sports’) to get my sports template via. CSS but How can I call it on the permalink I’m browsing?
Any ideas someone?
*Add tags if you don’t know the answer but you might think of a good tag 🙂
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Get a different template for the post’ is closed to new replies.