Undocumented default of post_type parameter to WP_Query with taxonomy queries
|Reported by:||dbernar1||Owned by:|
post_type parameter default depends on the is_tax attribute. This is not documented here: http://codex.wordpress.org/Class_Reference/WP_Query#Type_.26_Status_Parameters
If is_tax is true, and post_type is not provided, the default of 'any' kicks in, and if is_tax is not set, the default of 'post' kicks in.
Either it is a bug, or perhaps just the documentation needs to be updated.
Please let me know what you think.
Thank you for sharing your software.
Change History (5)
- Summary changed from WP_Query::is_tax true even when I am not really on a taxonomy page, but rather querying a taxonomy to Undocumented default of post_type parameter to WP_Query with taxonomy queries
3 years ago
- Milestone changed from Awaiting Review to 3.7
- Resolution set to fixed
- Status changed from new to closed