WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#29700 closed enhancement (wontfix)

Custom Post Types sin­gle post tem­plates in folder named with post-type name

Reported by: cyberwani Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Posts, Post Types Keywords: close
Focuses: template Cc:

Description

I was looking for a solution to store archive and template files for any Custom Post Type in it's own folder named with post-type.

So, I come to solution provided in the Matt Wiebes' class.

http://somadesign.ca/projects/smarter-custom-post-types/
(See #2 in Features)

http://somadesign.ca/wp-content/uploads/downloads/2010/05/sd_register_post_type.1.3.php_.txt
see function "template_include"

Attachments (1)

template.php.patch (607 bytes) - added by cyberwani 5 years ago.

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
5 years ago

  • Focuses template added
  • Summary changed from Customn Post Types sin­gle post tem­plates in folder named with post-type name to Custom Post Types sin­gle post tem­plates in folder named with post-type name

#2 @johnbillion
5 years ago

  • Keywords close added
  • Version changed from trunk to 3.0

This doesn't provide enough value to warrant adding a different, optional structure to the template hierarchy.

Suggesting wontfix.

#3 @helen
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.