[wp-trac] [WordPress Trac] #32919: Add post_type argument to get_tags function

WordPress Trac noreply at wordpress.org
Wed Jul 8 10:40:57 UTC 2015


#32919: Add post_type argument to get_tags function
-------------------------+------------------------------
 Reporter:  atomicjack   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Taxonomy     |     Version:  4.2.2
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by atomicjack):

 Either get_terms or get_tags would satisfy, just so as long as it would
 be, by core, possible to filter a post_type by tags.

 An example use case: you have a main search form, then a 'filter', you
 want to display the available tags for that post_type in a dropdown, so
 that the user can select a post from that post_type using tags.

 There might not be many use cases - but being able to filter a result via
 it, or display a filter box, would be very handy, particularly so for more
 corporate sites using WordPress, in which lots of content may be present.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32919#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list