You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a WP query has a meta query with a key that is not found in any of the posts, found posts value is incorrect. For example, if a post type is set for the query and a meta key is not found in any of posts for the post type, found posts equals to the number of posts in the post type. This might be Polylang related, since this happened on a site with Polylang activated. The number of found posts was equal to the number of all posts in all of the installed languages.
Steps to reproduce:
Install and activate Polylang Pro
Create a post type and publish posts for multiple languages
Do a WP query with a meta query for a missing post meta key
If a WP query has a meta query with a key that is not found in any of the posts, found posts value is incorrect. For example, if a post type is set for the query and a meta key is not found in any of posts for the post type, found posts equals to the number of posts in the post type. This might be Polylang related, since this happened on a site with Polylang activated. The number of found posts was equal to the number of all posts in all of the installed languages.
Steps to reproduce:
Example of the used WP query args:
The text was updated successfully, but these errors were encountered: