This is hard to answer – you’re asking us to look in the minds of the WP developers who wrote this code 🙂
It is possible that they thought the only place where you need to query for posts of all types is when you are doing a search, and thus they named it that way.
It could be documented more clearly in the Codex. The Codex is a wiki, so feel free to add it yourself!
Related Posts:
- Custom filter for main search: how to exclude specific post_type from search results
- AJAX search on post pages by custom post type
- How to make a WP_Query search with custom post types?
- Search multiple custom fields by using meta_query
- WP_Query ignores post_type in category view
- Search Custom Post Type with all meta attached?
- How Do I Use WP_Query to Run This Database Query as Search Result?
- Adding a term name from a custom taxonomy assigned to a post link displayed by a wp_query loop based on another taxonomy
- Search tags in CPTs
- Multiple post type queries (with specific arguments for each)
- Use get_post_types to query only custom posts types
- WP_Query | ‘post_type’ doesn’t work
- Including Custom Meta with posts_where query
- Including metaboxes from custom post types in global search — continued
- Advanced search form with filters for custom taxonomies
- how to get this tax_query working?
- Select2 AJAX and WP Query Returns ALL and does not filter
- find custom post type post by searching its custom field with my string
- Custom post type and standard post not displaying or working
- Searching post types
- Post Type => Any conundrum
- Change search query in wordpress custom post type
- Search Function not searching correct custom_post_type even though post_type is defined in search args
- post_type incorrect for custom post type
- Live search by custom tag
- Create Second Search Page Only for Custom Post Type
- Conditional posts in WP_query for search
- Manually build WP_Query
- WP_Query with custom post type search showing all results every time
- Custom post type blog pagination conflict
- Customising wordpress search and using $_GET[“s”]
- Searching Custom Posts content with JQuery
- Custom post archive with search, is_search() is false?
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- How to use a custom post type archive as front page?
- Combining queries with different arguments per post type
- How do you get the count of posts in an archive page?
- Get list of all registered post types slugs
- how to filter by last name for custom post
- The Operator “NOT IN” Does Not Work In tax_query
- Returning search results by relevance, including Custom Post Types
- How to replicate some of Drupal Views functionality in WordPress?
- Exclude from search all custom posts which are NOT in a taxonomy term
- How to get_queried_object on multiple objects?
- How to get the parent’s taxonomy?
- New WP_query in template not working with CPT+category on some pages
- Displaying a specific post in a wp query by post id
- Query current and future events, ordered by begin date
- error in Advanced Search Form for Custom Post Types in WordPress array_key_exists() expects parameter 2to be array, string given
- Search Custom Post Type Custom Fields
- Optimised Code for Pulling Taxonomy Posts
- Calculating Bayesian average for custom post type
- How can I get the first 50% of all posts (within a custom post type)?
- Remove duplicated values from a loop
- is there a way to retrieve posts that do not have a featured image assigned?
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- shortcode to show custom post types by category
- convert custom query to wp_query
- Search Custom Post Type & Taxonomies
- Get custom taxonomies from multiple posts
- Loop to fetch 3 post_thumbnail instances from 3 most recent custom post types named “portfolio”
- filter custom post type by meta key in dashboard
- How to use load more custom post type data normal or according to on click category tab In WP
- Problem: wp_query outputs all images on site
- filter search custom field query
- Include custom taxonomy term in search
- How does order=asc effect a wp_query (its acting pretty weird in a loop)
- Is it possible to filter the display name for post formats for display in the Formats meta box?
- Using wp_query to modify the loop in index.php for a CPT
- Pagination not working on custom query on a page
- Query within a foreach within a query (queryception)
- Hide custom post type from search based on custom taxonomy
- Best way to create a search for custom post type by custom field values
- Post ordering not working with custom field
- Query custom posts from custom taxonomy
- Query Custom Post Type by Taxonomy
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- How to have multiple search result pages in wordpress with taxonomy terms listed
- How can I get custom post types to recognize pretty permalink variables?
- Error in the page of a CPT file in WordPress
- Custom Post type doesn’t appear in search results
- post type => ‘any’ not applied my custom queries
- Query the title of the page to show posts with matching category in the loop
- WP Query tax_query not returning posts
- wp_query return nothing
- Main site single-property.php design, as homepage of a multisite
- Query pulling all taxonomies, not one I am specifying
- Insert single CPT items every x posts of another CPT
- Get archive of posts separated by taxonomies and subtaxonomies
- Can’t seem to filter wp_query by current category ID
- why custom post archive gives always no more than 10 posts despite of paging settings?
- Post data in separate divs with incrementing class using WP_Query
- How would I get a list of posts from a custom post type
- How to list groupings and keep pagination
- direct custom post query interferes with other queries on page
- How to add post type in masonry posts elementory widget
- How to exclude certain portfolios from a loop
- show the most recent date of all posts to display on front end
- custom taxonomy not return in the code
- Group search results by post type, but having a unique heading for each section?