[wp-trac] [WordPress Trac] #8214: get_terms should support term descriptions

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 14 18:57:41 GMT 2008


#8214: get_terms should support term descriptions
---------------------------+------------------------------------------------
 Reporter:  AaronCampbell  |       Owner:                         
     Type:  enhancement    |      Status:  new                    
 Priority:  normal         |   Milestone:  2.8                    
Component:  Taxonomy       |     Version:                         
 Severity:  normal         |    Keywords:  has-patch needs-testing
---------------------------+------------------------------------------------
 Right now you can't use `get_terms` to get terms based on description.  I
 think it should treat description just like name, so I added a
 `description__like` argument that works just like the `name__like`
 argument.  In my case, I wanted only terms that had a description, so I
 called it like this:
 {{{
 $args = array('description__like' => '_');
 get_terms('post_tag', $args);
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8214>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list