[wp-trac] [WordPress Trac] #21608: get_the_terms() returns an array with keys that are not starting from 0

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 16 14:53:12 UTC 2012


#21608: get_the_terms() returns an array with keys that are not starting from 0
--------------------------+------------------------------
 Reporter:  boryanka      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.4.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by boryanka):

 Yes, maybe it is, but what would you do if you had let's say 5 terms for
 this post and you only wanted to list the first or last one?

 There are ways to do it, of course - workarounds.

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


More information about the wp-trac mailing list