You have to change the input with 4 inputs like this :
<input type="hidden" name="post_type[]" value="videos" />
<input type="hidden" name="post_type[]" value="e-courses" />
<input type="hidden" name="post_type[]" value="e-books" />
<input type="hidden" name="post_type[]" value="white-papers" />
You may get more detail about a complete code in this article
Related Posts:
- Advanced search form with filters for custom taxonomies and custom fields
- Creating a search form for custom fields
- group search results by post type?
- Search multiple custom fields by using meta_query
- Custom post type admin search
- Have different search results template depending of custom post type searched
- The right way to create a custom search page for complex custom post types
- Include images from pages in wp search.php results in default wp search
- Separating Search Results By Post Type
- WordPress Admin Panel search posts with custom post meta values along with title
- Backend search; include CPT meta?
- Custom Search form not working in localhost
- Custom Search | Wrong output & question
- Group search results by post type, but hide post types with no results
- Search results ordered by custom post types are not grouped
- Search Post Title Only [duplicate]
- How can I include meta box content when searching?
- Customize Search to only search current custom post type
- How to search from specific post type with tags?
- Include different loop templates in search query
- Search tags in CPTs
- How to search CPT’s by meta query from the admin dashboard?
- Set meta_query only for specific post type
- Add custom post type archives to search results?
- CPT Meta Searching
- How to filter search results by post type?
- How to create an advanced filter search?
- How to search map address in custom post type?
- Custom search results page query, link permalink to post title while separating by post types
- Custom Search for Drafts in Custom Post Type
- Including Custom Meta with posts_where query
- search also in taxonomy, tags and custom fields
- Custom post type search using $_SESSION and pre_get_posts
- Custom Post Type And “fopen”
- Filter custom posts using auto populated dropdown selectors
- Make parts of your wordpress website completely built with data from external APIs?
- Including metaboxes from custom post types in global search — continued
- Custom post type not showing in search result
- Searching Custom Post Types
- How do i search authors from search form using author’s name
- BBPress Search results in WordPress search
- Limit Search to Post Type With Apostrophe return search not found
- Search filter triggered & sort by custom post type
- Set Custom Post Type in Widget Settings for use in Widget
- Displaying and searching Custom Posts
- Search by tag name and category
- Searching Custom Fields
- dropdowboxes with pre-selected custom fields optios that filters the results according seach needs
- Different results between permalink and query var search
- How to let users choose where to search for posts?
- What content types are shown at a search page?
- Can NOT search my custom post type?
- Custom post_type search pages
- Pagination Error : Duplicate argument being outputted
- Custom Empty Results page for my Custom Post Type
- Select2 AJAX and WP Query Returns ALL and does not filter
- Category Search / Custom Post Type search on my website. Custom Post Types that are “page-like”?
- Custom Search | check multiple meta_value for search value
- Filtering custom posts by custom fields (ACF) [closed]
- Searching post types
- Limit search field to just search a custom post type with custom fields
- Search CPT Title AND Meta
- Building a Data Intensive Website with WordPress
- Display future posts in search
- Modifying search results based on post_type
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Is it possible to get the specific content on the search page?
- Search for custom field input of a custom post type in ajax live search
- In the php, how can I have a category of a custom post type display?
- Search Function not searching correct custom_post_type even though post_type is defined in search args
- Search only one custom post type
- Query first and last name from custom post type
- Custom search for a custom post type in WordPress
- Advanced search form with multiple custom fields
- Search in multiple specific post types
- I can not display search template created from a post type custom
- Creating a search results page from a custom post type in a plugin?
- Search custom post type result in same template page
- Include images from pages in wp search.php results in default wp search
- Search facility with directories
- Create Second Search Page Only for Custom Post Type
- custom search form for custom post
- Custom post url in search.php isn’t the correct rewrited url
- custom search results – order results differently by post type
- Conditional posts in WP_query for search
- Post search not looking at post title since 4.4.2 upgrade
- Manually build WP_Query
- Trying to modify custom search function in plugin to search postmeta table for keyword as well as posts table
- pre_get_posts not firing at all
- Custom Search not working
- Is it good practice to search for custom posts based on custom field values?
- Diffrent search templates for different post types
- Cannot get query var ‘post_type’ to work
- Problem with custom post type search
- admin search of pages returns custom post types
- Why does ‘exclude_from_search’ exclude a custom post type from WP_Query?
- Custom post archive with search, is_search() is false?
- Why custom search engine only searches in post titles of custom posts?
- How do I provide a search form for a specific post type, that is capable of searching within custom fields of the specified CPT?
- Meta_query question