functions – If URL x, load template, else single.php
I have custom posts that I want to be shown in a different template.
Right now I have this:
All other default posts are on:
Basically, I’m trying to find a function.php code, that identifies URL and applies another template.
So, if path www.mywebsite.com/travel/post, then load traveltemplate.php
Any help would be appreciated.