[wp-trac] [WordPress Trac] #13818: There should be index pages for custom post types

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 11 17:09:36 UTC 2010


#13818: There should be index pages for custom post types
-----------------------------+----------------------------------------------
 Reporter:  frankieroberto   |       Owner:                
     Type:  feature request  |      Status:  new           
 Priority:  normal           |   Milestone:  Future Release
Component:  Template         |     Version:  3.0           
 Severity:  normal           |    Keywords:                
-----------------------------+----------------------------------------------

Comment(by yeswework):

 I can't think of many cases where a default template file for each custom
 post type wouldn't be either absolutely necessary or at least very useful
 (just as with taxonomies). The choice not to implement this seems both
 inconsistent and counterproductive.

 On the point that there is nothing to handle '/category' out of the box,
 that's not really true, since the default query passed to index.php does
 precisely that.

 And yes – category.php (and likewise taxonomy.php) works when the rewrite
 rules direct you to a specific category... which is precisely the
 functionality that's missing for custom post types! An equivalent template
 option, eg. 'types.php' (or whatever), with the rewrite rules set and
 right query information passed in, seems to me really important. I'm
 trying to build a site right now which uses these features, and the custom
 post types don't seem useful at all without this option.

 You say that there's a 'big picture rationale', which I take to mean that
 you don't want to add a load of features that won't be useful. That's fair
 enough. But I think the lack of this feature will make it hard for people
 even to get started with custom post types. In that sense, your picture of
 'how people will utilize custom post types' will be inherently skewed from
 the outset.

 As you maybe saw in the article which I pasted, CMS Press is a plugin
 which gives you a GUI for custom post types and custom taxonomies
 (something we've been recommending elsewhere), but also, apparently,
 generates the extra rewrite and template rules to be able to use them out
 of the box in the way I'm describing. Great! The problem is, CMS Press
 stores its custom post type definitions independently of functions.php –
 so if you happen to have set up a site using the widely recommended
 functions.php method (as I have), then this plugin is no good. If you can
 recommend another that'll solve the template/redirect problem, let me
 know. Otherwise perhaps I'll just have to start again using this pseudo-
 core plugin...

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13818#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list