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

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 31 08:38: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  |
----------------------------------+-----------------------------

Comment (by 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.

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


More information about the wp-trac mailing list