#27720 closed feature request (duplicate)
post_type argument needed for wp_terms
Reported by: | neonWired | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.8.1 |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
Description
Could do with arg for wp_terms to allow wp_terms to return taxs with private posts. Currently taxonomy terms act as if they are empty when they only contain private posts so if you're working on a site that's entirely private, there no way to use wp_terms.
Change History (2)
Note: See
TracTickets for help on using
tickets.
There is no function called
wp_terms()
... perhaps you meanthe_terms()
?the_terms()
is problematic because it already has 5 arguments. You might want to checkwp_get_object_terms()
instead.Because we maintain backwards compatibility,
the_terms()
will always (probably!) have 5 arguments, but we shouldn't add a 6th. Functions that have 6 arguments indicate bad design. In almost every case, a function like that should have have beensaner_func( $args = array() )