Custom post type with custom template
-
I am trying to assign a custom single post template to a custom post type.
The custom post type is ‘machines’. I would like that when a user opens a custom post, WordPress uses that specific template.
After reading a bit about hierarchy I tried renaming the template file to single-machines.php, machines.php and a couple of others to make it happen but it wouldn’t take.
What factors am I not considering?
I am able to manually assign the template via the admin screen and it works, but I would like it to be automatic.The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom post type with custom template’ is closed to new replies.