#27720 closed feature request (duplicate)
post_type argument needed for wp_terms
| Reported by: | neonWired | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Taxonomy | Version: | 3.8.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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() )