[wp-trac] [WordPress Trac] #12974: Add support to get_archive_template() for custom content types

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 31 18:00:25 UTC 2010


#12974: Add support to get_archive_template() for custom content types
-------------------------+--------------------------------------------------
 Reporter:  johnonolan   |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Triage
Component:  Post Types   |     Version:                 
 Severity:  normal       |    Keywords:                 
-------------------------+--------------------------------------------------

Comment(by mattwiebe):

 Replying to [comment:18 mikeschinkel]:
 > Maybe what would work well would be having subdirectories as one of the
 more specific options in the hierarchy, i.e. if a site only needs one or
 two custom post types then just put them all in the main theme directory.
 OTOH, if the themer ''wants'' the complexity of subdirectories because
 they are just dealing with too many files then they can reorganize and
 WordPress will give priority to files in the subdirectories.
 >
 > So, best of both worlds; if you need tools to manage complexity you get
 them but they are not required for the simple case?

 Exactly what I'd advocate. It's actually what my current code is doing, I
 just failed to mention that part. Just like the existing WP template
 hierarchy, from specific to general.

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


More information about the wp-trac mailing list