Template for custom post type
-
Hi there,
I’m trying to create a custom template for my new custom post type.
I’ve tried creating a single-[my-post-type].php, but for some reason that template does not get used. After some research I’ve discovered that my custom post type for some reason uses the default page.php – not single.php. Just for the fun, I tried creating a page-[my-post-type].php, but with no luck.
When I inspect the page in the browser I can see that the <body> tag gets a class of “type-attachment”.
I am mystified. Can anybody help?
Thanks ??
//Rasmus
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Template for custom post type’ is closed to new replies.