[wp-testers] Custom post type affects theme template hierarchy?

Peter Westwood peter.westwood at ftwr.co.uk
Tue Sep 7 17:09:23 UTC 2010


On 7 Sep 2010, at 14:40, Andrew Macaulay-Brook wrote:

> Hi - I've got a simple custom post type defined and a very basic theme with no single.php or single-*.php templates in it.
> 
> When I look at the single page for my post type, I seem to be getting the single.php template from twentyten instead of my theme's index.php.
> 
> From everything I've ever done with themes, this isn't how the hierarchy works.  Have I uncovered a bug?
> 
> I've checked that I haven't made a child theme by mistake!

This /shouldn't/ happen.

Have you created a trac ticket with enough theme code and information to reproduce this?

Have you checked with no plugins enabled?

Cheers
-- 
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5



More information about the wp-testers mailing list