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 Implement Search Functionality?
- date_query empty results with custom post type
- How to have multiple search result pages in wordpress with taxonomy terms listed
- How to order query results based on if a custom field has been populated, then the order by the date of the post?
- conditional filter
- Page that lists publications by classifying them by taxonomy
- custom taxonomy pagination 404 error
- Ordering by meta value not working
- How to hide list from custom post type
- Custom wp-query display post only today
- Pagination in custom post type archive.php not working
- wp_query can’t get max_num_pages in custom post type
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- posts_per_page in custom WP_Query does not override “Reading” settings?
- How to search post titles with whole words only, but not the exact word only?
- Custom Form / Search with Custom Post Type Data
- Is it possible to get the specific content on the search page?
- set object terms after some some time of published post – functions.php
- Get next and prev item from custom WP_Query and Custom Post Type
- Why is my custom post content only viewable when signed into WordPress?
- After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel
- Create if else for post types in WP_Query ‘post__in’ values
- WP Query from two Custom Post type fields as statement
- Alike Shortcode using in Custom Shortcode
- Sort custom posts by date and then by taxonomy
- WP Query: If field X is empty, show posts based on field Y
- Query custom post type that has a serialized relational advanced custom field value
- Exclude a specific post in a Custom Post Type
- have to do a while have post to show for two custom post types sharing the same taxonomy?
- Display Parent-Child Posts in specific order by comparing IDs in array
- Custom Post Type Single Page is not working
- Random item on Custom Query working Local but not on live
- Display related CPT with custom taxonomy
- Query to show post current day
- Using ACF values in nested WP queries for CPT with date values in the past
- Pin posts to top of custom loop
- Apply category query clause to posts of custom type
- Search for custom field input of a custom post type in ajax live search
- custom post type and a “sticky” position taxonomy
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- Display post count for a specific month
- WP_Query: how to search tags in addition to a custom post type?
- display post count in archive page that have relation with another taxonomy term
- How can I sort the results of a REST API response by the title of a connected custom post type?
- Query to Exclude Child Pages from Custom Post Type Archive
- WP_Query get always custom post_type for first
- Query when is one or several values
- Sort custom post column by generated value?
- Filtering posts based on three taxonomies
- build child and anchestor three from post parent
- Create a post automatically if search result has zero results
- Custom post type query with taxonomy
- Pagination Not Working When Used With WP_Query() `offset` Property
- WP_query has incorrect wp_posts.post_name = ‘asc’ when I have custom post type called ‘order’
- Get all post types that supports tags
- Randomizing WordPress Custom Post Type Sorting Through Them Without Page Refresh
- Order posts alphabetically with numbers but some of the posts has numbers in the title
- How to output custom post type title on custom page with category next to it?
- meta query condition don’t work
- Display Custom Post Type Based on Taxonomy With WP_Query()
- How can I query and sort custom-post type using WP_Query
- How to search through all child taxonomies using WP_Query?
- Custom query result empty on page 2
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- WP_Query – How To Query Only Custom Posts With No Children of Their Own?
- Numeric pagination custom post type