[wp-trac] [WordPress Trac] #14017: New template "tag": get_custom_field()

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 31 08:48:20 UTC 2011


#14017: New template "tag": get_custom_field()
----------------------------------+-----------------------------
 Reporter:  filosofo              |       Owner:  filosofo
     Type:  enhancement           |      Status:  new
 Priority:  normal                |   Milestone:  Future Release
Component:  Template              |     Version:  3.0
 Severity:  normal                |  Resolution:
 Keywords:  has-patch, 3.2-early  |
----------------------------------+-----------------------------
Changes (by mikeschinkel):

 * cc: mikeschinkel@… (added)


Comment:

 Replying to [comment:8 scribu]:
 > How about we make a WP_Post class, with a custom_field() method:
 >
 > {{{
 > echo $post->custom_field( 'key' );
 > }}}
 >
 > Of course, it could be extended with other methods too.

 +1

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


More information about the wp-trac mailing list