[wp-trac] [WordPress Trac] #12105: Add support to get_single_template() for custom content types
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 1 00:32:29 UTC 2010
#12105: Add support to get_single_template() for custom content types
-------------------------+--------------------------------------------------
Reporter: ptahdunbar | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: Template | Version: 3.0
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Comment(by greenshady):
> Also, having get_singular_template() below get_single_template() would
always cause single.php to be used as that currently catches all custom
post types. Really we just need to make sure we're adding on functionality
in the right order, and newer and more specific templates should replace
older and more general ones if available.
Should that be true though? Should `is_single()` be true for custom post
types? As far as I know, `$wp_query->is_single` isn't currently set for
singular views of custom post types.
I could be wrong with that. If so, then we definitely need to move the
check for the singular template up.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12105#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list