[wp-trac] [WordPress Trac] #13818: There should be index pages for custom post types
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 15 02:39:21 UTC 2010
#13818: There should be index pages for custom post types
----------------------------+-----------------------------------------------
Reporter: frankieroberto | Owner: nacin
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: 3.1
Component: Template | Version: 3.0
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
Comment(by greenshady):
> If I create archive-post_type-products.php then the H1 can simply be
"Products" - it doesn't need to be dynamic because that template file will
only ever serve my "Products" post type.
>
> I think the only point of custom post type archive templates is for
specific post types, there's no need for a blanket archive template
because the entire point is that they're "custom" post types (eg. not
related to each other).
The keywords you used there were "I" and "my". Theme developers don't
always make themes for themselves. They don't have the luxury of knowing
what post types a user might have. They must be flexible and cater to a
wide variety of uses. They must be able to create a "blanket" archive
template that works across all scenarios to some degree.
I agree that custom post types are "custom" and should be handled by
"custom" code. I preach that every day. But, themes should gracefully
fall back to a default if no custom template, title, or whatever exists.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13818#comment:48>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list