[wp-trac] [WordPress Trac] #17276: custom post type problems needs addressed

WordPress Trac wp-trac at lists.automattic.com
Mon May 9 03:50:17 UTC 2011


#17276: custom post type problems needs addressed
-------------------------+------------------------------
 Reporter:  squeeky      |       Owner:  squeeky
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Post Types   |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+------------------------------

Comment (by squeeky):

 ok - i evaluated the personal work i must do and think i could probably
 get enough done to start playing with subversion before next weekend -
 once installed i'll submit a proper svn diff

 then move on to the widgets Archives and Calender - where i believe i'll
 need to tweak the functions they call to get them to intuitively handle
 custom post types - i don't know yet but i might even need to wp_rewrite
 (i hope not)

 @ scribu > concerning "What if I have both a category, a tag and a custom
 term attached to the same post and want to display them all at once?":

 i did not look into it yet, meaning i am still only thinking about it -
 currently, i am thinking maybe an update to the functions something like
 this
 {{{
 function the_tags( $before = null, $sep = ', ', $after = '', $enhance =
 true )
 }}}

 default value for $enhance is true (so those not skilled at coding can
 enjoy the benefits) - and displays builtin tags and custom tax that are
 tag-like...

 - when $enhance == false : function the_tags acts exactly as it does now

 - when $enhance == true : auto-handle custom tax (that is fitting for
 "tags")

 - $enhance ALSO can accept an array used to determine formatting / just
 like the current parameters for the_tags > $before = null, $sep = ', ',
 $after = ''

 so a coder could do something like the following:
 {{{
 <?php the_tags( 'Common Tags: ', ', ', '<br />', array( 'Custom Tags: ',
 ', ', '<br />' ) ); ?>
 }}}

 also eventually i'll be hitting auto-flush idea again > where i am now
 inspired by how widgets use $instance AND ALSO wonder how terrible it
 would be to (YES > YOU GUESSED IT) store ONLY non-builtin post types/tax

 SO i guess above i am only saying what Arnold Schwarzenegger is famous for
 saying, "I'll be back"

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


More information about the wp-trac mailing list