[wp-trac] [WordPress Trac] #7103: Post Template
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 5 19:31:39 GMT 2008
#7103: Post Template
----------------------------+-----------------------------------------------
Reporter: gmcosta | Owner: anonymous
Type: enhancement | Status: new
Priority: low | Milestone: 2.6
Component: Administration | Version: 2.5.1
Severity: trivial | Keywords:
----------------------------+-----------------------------------------------
In the past few days I was trying to modify (with no success) the code of
Wordpress Core to let users who has capability to write posts, to choose
(in Write Post screen) what Post Template they want to use, like Wordpress
already do with Pages.
http://iferrari.net/post-template-feature-in-wordpress-26/
To become included in the release feature list, this suggestion should be
at least, very useful, so why am I proposing this?
Just an example. If you are using categories to classify books, the Book
will be the post. You have to use custom fields to display some additional
data, so you’ll have to prepare your single.php (unique post template) to
display correctly this data.
In the same site you have to display pictures, movies, cars,etc… All of
these data has it’s own group of custom fields.
Just imagine the hundreds of lines your single.php will have just to check
what custom fields it should be displayed if you have 40 60 +100
categories associated with main cats: pictures, movies, cars...
I modified the follow files:
wp-includes/theme.php
Line 440 - 461
wp-admin/includes/template.php
Line 905 - 915
wp-admin/includes/theme.php
Line 53 - 76
wp-admin/includes/post.php
Line 206 / 226-227 / 330 / 406
wp-admin/edit-form-advanced.php
Line 269-280
Like I'm not so familiar with wp core code and well know php dev I got
some erros.
The image I attached reproduce the Page Template in Write Post
I would like if someone give feedback.
kind regards.
Gmcosta
--
Ticket URL: <http://trac.wordpress.org/ticket/7103>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list