The problem is explained in the quote you’ve mentioned:
“Default value is ‘publish’, but if the user is logged in, ‘private’ is added. And if the query is run in an admin context, protected statuses are added too. By default protected statuses are ‘future’, ‘draft’ and ‘pending’.”
Ajax call is always considered to be from an admin context.
Related Posts:
- “tax_query” parameter not working with WP_Query
- Custom Taxonomy and Tax_Query
- Including all terms in wordpress tax_query
- Using tax_query creates a 1 = 0 or 1 = 1 in $wp_query->request
- search query within custom taxonomy term, post title and meta field
- Hiding taxonomies with no children WP_Query & tax_query
- Set tax_query conditionally with new WP_Query
- How to do a particular wp_query taxonomy search
- WP_Query tax_query – Show results if child has parent X
- how to use tax_query to apply both terms or one if one is empty
- WordPress hiding posts without content on custom taxonomy query. How to solve?
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Advanced AND tax_query in sidebar with 2 taxonomies
- How to limit posts to 1 from each term with tax_query?
- Using wp_query is it possible to orderby taxonomy?
- How do I exclude a custom taxonomy from the post loop
- WordPress tax_query “and” operator not functioning as desired
- Using WordPress to make a “Product Search” type navigation drilldown
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- display posts with same taxonomy term
- pre_get_posts with tax_query causes empty result
- How to get first post in a category of a custom taxonomy
- Display one post from each term in a custom taxonomy [closed]
- wp query with multiple taxonomy?
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- On Taxonomy Template page, want to add Post_Type
- Page queried instead of a custom taxonomy
- tax_query not working on main query
- Custom WP_Query breaks default behaviour of viewing right post associated with tax-term!
- The next_posts_link() show me a aditional page in blank
- Help with a query not working with custom taxonomy
- Ordering Posts with Custom Taxonomy Terms Array
- List taxonomy / category count showing list published posts only
- Advanced Tax Query
- tax_query shows no results if nothing is selected
- Dynamically tax_query terms
- How to output content based on same custom taxonomy?
- WP Query with custom taxonomy
- how to search in custom fields & custom taxonomy for custom search
- How do I sort posts by custom taxonomy?
- pre_get_posts Tax Query not working for custom author page
- WP_Query on custom taxonomy works fine but fails if run through wp_ajax_
- Custom taxonomy query not working with switch_to_blog
- Advanced Query Logic With Multiple Taxonomies
- cannot get multiple loops using tax_query
- ‘wp’ action hook not firing in admin and login?
- Taxonomy archive showing no results
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- Display all posts for taxonomy term across multiple custom post types
- Selecting all posts from the children of a particular parent taxonomy
- Manipulate WP Query using a custom post type and multiple tax_query taxonomies
- Retrieve Custom Taxonomies according to posts selected
- Can I use OR relation for one item when calling tax_query from WP_Query and use AND for the rest?
- How to display Related Posts based on number of taxonomy terms matched
- querying posts by custom taxonomy terms right from a querystring based URL
- tax_query not working in template
- Query custom taxonomy by term id?
- tax_query not working
- When filtering query on custom taxonomy; main menu dissapears
- Exclude taxonomy term from all loops, but having it on widget
- Why can’t I use an array of term slugs in WP_Query?
- wp_query not resetting, last post hanging
- Using WP_Query and Query_post for the loop?
- WP_Query parameter conflict
- Problem with wordpress pagination
- How to print term name inside wp post loop
- Custom Category Walker with Image, Fallback to Most Recent Post in Category Image
- Create alphabetical Pagination for custom taxonomy?
- Custom arguments in WP_Query
- Also show terms that are related to draft and pending posts
- Wp_query…a type of term a different div
- check if a taxnomy queried in $wp_query?
- Taxonomy.php how to show post only in current taxonomy with wp_query?
- Query custom taxonomy for category including children
- Proper way to create taxonomy queries
- passing moree than one value of slugs in taxonomy using variable
- custom post type and a “sticky” position taxonomy
- How to search through all child taxonomies using WP_Query?
- Tax-query on taxonomy doesn´t work
- how do you pull data from two taxonomies?
- WordPress post_status and meta_query
- Optimal way to make tags in tax_query optional?
- WordPress Multiple Taxonomy Query
- How can I get all the posts that are related with a specific taxonomy term?
- How to combine nested tax_query logic with other nested query logic?
- tax_query not working for taxonomy slug
- How to get hierarchical number of custom taxanomy
- Include attachments with a custom taxonomy in search
- tax_query showing no results
- How do you move custom fields to custom taxonomies using WP Queries
- Run next query based on first query’s term
- Get the original menu item name string instead of the label
- Tax query array terms display out of order
- Custom Taxonomy + JQuery Tabs
- How to update WordPress custom SQL Select query for custom taxonomies so that syntax is correct?
- How to query posts that are not related to any term of a taxonomy?
- Using wp_query is it possible to orderby taxonomy?
- WP Query Conditionally query meta and taxonomy
- Complex Taxonomy scheme
- Loop posts without any taxonomy