[wp-trac] [WordPress Trac] #16677: wp_dropdown_categories() shows the wrong name/id when $taxonomy arg is present
WordPress Trac
wp-trac at lists.automattic.com
Sat Feb 26 13:23:12 UTC 2011
#16677: wp_dropdown_categories() shows the wrong name/id when $taxonomy arg is
present
--------------------------+----------------------
Reporter: ramiy | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version: 3.1
Severity: normal | Resolution: invalid
Keywords: |
--------------------------+----------------------
Changes (by ocean90):
* keywords: needs-patch =>
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
It's expected behaviour. ''cat'' is the default value.
If you want your own name and id you must use this:
{{{wp_dropdown_categories( array( 'taxonomy' => 'channel', 'name' =>
'channel' ) )}}}
(''id'' will be the same as ''name'' if ''id'' isn't set.)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16677#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list