wp-papi / papi

:rocket: WordPress Page Type API with custom fields
https://wp-papi.github.io
MIT License
263 stars 32 forks source link

Add hide_empty option to term property #120

Closed KristoferN closed 9 years ago

KristoferN commented 9 years ago

Added setting for displaying terms with no related posts. Default setting hides empty terms, hide_empty = false shows empties.

frozzare commented 9 years ago

Term property has a query array that takes hide_empty since the query array is term query fields. It maybe missing from the docs.