[theme-reviewers] Post type detected as an attachment

Mario Peshev mario at peshev.net
Tue Aug 30 15:01:23 UTC 2011


Hello reviewers,

It could be a support forum-alike question, but didn't find that case
exactly and decided to check here as well.

I have three custom post types, one of them is books, I have book listing
and so on. But I cant set a post template.

I checked on Justin's post here
http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress
where
he describes I could use single-myposttype.php but no luck. What I find more
annoying is that get_post_type() in my loop returns attachment post type.
I'm pretty sure it's a book as I have books listing and addition in the
admin panel and I actually click 'View book' to load the single view there.

Any hints what could I have missed?

Thanks in advance.

Mario Peshev
freelance software developer/trainer
http://www.linkedin.com/in/mpeshev
http://peshev.net/blog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110830/9f612060/attachment.htm>


More information about the theme-reviewers mailing list