Business Web
Supreme Deity
In Training
Lifetime member
Member Likes (0)
I use the following plugin:
http://www.nathanrice.net/plugins/single-post-template
This allows me to select a different post template, in the same way as havign different page templates.
It appears as a drop-down menu on the normal post edit/new screen, but I can't seem to get it to show on the post type screen that I now have. Isd there a way to have it show up.
An alternative, and a much better solution, would be to be able to link directly to the different post template from the post type screen.
For example, I have an accommodation post type, and the page I have set up for accommodation is single-accommodation.php. Is there a way to save the file and have it show on single-accommodation.php instead of single.php?
EDIT:
I'll just explain why I'm doing it that way, just in case there is another solution.
In the single-accommodation.php file I have set up various bits of code to show up accommodation specific custom fields. I have another one, single-accommodation.php, which has the coded to show up shop specific custom field data and will have another post type called 'shops'.

Responses (4)
Sales & Support Pro (joined March 2010) Likes (0)
Hiya,
I believe that the issue here is getting the Single Post Template plugin to be compatible with custom post types.
At the moment it seems the plugins specifically only supports posts rather than any other post type.
I'm not sure how you'd go about doing that to be honest so it might be something you'll want to ask the developer if he's considering adding in sometime soon. Otherwise, it looks like he does do custom development. Failing that, you can always try our job boards.
Cheers,
Phil
Member (joined July 2010) Likes (0)
thanks, I'll ahve a word with the plugin writer and report back here if I get anything, in case anybody else is interested in it.
Member (joined July 2010) Likes (0)
I found a really simple way to do this, so put it into a forum post so others have the solution too:
http://premium.wpmudev.org/forums/topic/a-solution-to-different-singlephp-files-for-each-or-some-post-types
Sales & Support Pro (joined March 2010) Likes (0)
That's great, thanks Joe!
Become a member