Isn’t this easily to be achieved by checking if ?s= is set ?
You do have to output the results of this search on the same page, by using the post archive link as action url.
if ( isset( $_GET[s] ) {
// show posts
}
Related Posts:
- Include custom taxonomy term in search
- Adding content to archive and taxonomy pages on custom post types?
- AJAX search on post pages by custom post type
- How can I change the admin search posts fields?
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Development of a WordPress Search Plugin – Best Practices
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- Simple way to search custom-post types only
- Pushing a custom post type to the top of the search results
- $query->set in pre_get_posts is unintentionally affecting the backend
- Setting up custom post type archives in WP3.1? Any luck?
- Custom Post Type Archive Page: Set Posts Per Page, Paginate
- How to show more posts on an archive page?
- Display all custom post types in archives.php
- Search everything (posts, pages, tags, cpt, meta)
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- filter search result with custom post type meta key
- Custom search for custom post type, custom meta and search fields
- Removing CPT slug from URL results in 404 error for archive page
- Multiple post types in archives (filter?)
- How to let custom post type posts show in standard post archive (like in homepage)?
- Include Custom Posts Type in Year/Month/Date Archive
- where can I see my custom post type archive template?
- Search Post Title Only [duplicate]
- Custom post type archive sorted and grouped by date in post meta field
- Customize Search Results for Custom Post Type
- multiple search forms and search results
- Custom-post-type-archive: posts sorted/filtered by year?
- Custom Post Types and archives
- Custom Fields vs Separate Table
- How to get “custom post type”-archive with working permalink to it?
- How to search map address in custom post type?
- Custom Search for Drafts in Custom Post Type
- Custom post types archive redirect
- just can’t get date-based archives per post-type to work
- Custom template page with custom archives listing by user
- Root slug of taxonomy returning 404
- Multiple meta_values in the pre_get_posts filter?
- How to order separated Custom Post Search results
- Custom post type search using $_SESSION and pre_get_posts
- How to stick custom post at the top in search results
- Make parts of your wordpress website completely built with data from external APIs?
- How to get post type and month/year before while loop for date.php file
- Custom post type not showing in search result
- What to and how to proceed with CPT to make DB small and efficient?
- Custom archive page for CPT UI
- Auto Complete Search
- How to display custom post in archive section of the wordpress page?
- Remotely search WordPress sites using xml-rpc
- Limit Search to Post Type With Apostrophe return search not found
- Search by tag name and category
- Different results between permalink and query var search
- WordPress Custom Search by post_type
- Custom post type posts don’t show in archive widget
- Archive for a Taxonomy of a Custom Post type
- What content types are shown at a search page?
- Search one custom post type ONLY, disable “all posts”
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Return the name of the post type
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- archive as a page, so that it can be added in the wp_menu_nav
- search custom post type by custom fields on front end
- Archive links for custom post types
- Show All Custom Post Types On A Single Archive Page
- Custom Search | check multiple meta_value for search value
- Dynamic category name in query post
- Blank search results on custom search
- How to know which archive page is active
- Limit search field to just search a custom post type with custom fields
- How to have multiple archive pages?
- Redirecting search to specific templates with $_GET[“post_type”]
- Listing authors and date archive from custom post type
- WordPress sitemap with Custom Post Types
- Is possible register two archive pages for single custom post type?
- Custom Post Type Archive Page showing as 404
- 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
- WP_List_Table Inside Metabox Not Working on Clicking Search Button
- post_type incorrect for custom post type
- Live search by custom tag
- how to create custom taxonomy drop downs for parents and child
- Adding Custom Post Types to category/tag/author archives breaks header content
- The page or ad listing you are trying to reach no longer exists or has expired
- One of my headings is mysteriously coming up as a link in my CPT Archive
- Custom nav menu current item custom link problem
- Extensive search filtering and results->PDF in the front-end
- Stop Custom post type from being searched via URL
- archive-{custom_post_type}.php not getting recognized wordpress
- Custom Post Types Archives and daily/monthly joke
- Display results from two Custom Post Types in page template
- Advanced search form with filters for custom taxonomies and custom fields
- How to make a list of posts displaying them 5 by 5 with a “next posts” link?
- Searching for a single custom post type, buddypress
- How do I do this?: If custom post type exists, echo it, else do not
- WordPress search results
- Pagination not working for archive
- Drop Down Filter with CPT as Options for Search Form
- WP Query + custom fields: How to query event posts from the current date backwards 6 months and organize it month by month?
- Group search results by post type, but having a unique heading for each section?