Simply make an HTML form in Elementor on the archive page where you want to search.
Code:
<form class="zohaib-search-form" role="search" action="/courses" method="get">
<input placeholder="Search.." name="s" type="search">
<button type="submit"><i class="fas fa-search"></i></button>
**Note:** name property of input should be ‘s’ because the search query is looking for key ‘s’ to get and run it.
Replace the action property with your custom post type. It will only work if the action link will be an archive page. After submit the search the filter result will also show on the same archive page like mine courses archive page.
Related Posts:
- Search Custom Post Type Pages and Custom Fields in 2 Dropdowns?
- How to display comments and comment form on custom post type?
- wp_query ‘s’ parameter does not work with custom post type
- Search results posts_orderby and ID
- What would causes search to return incorrect results?
- search form for custom fields
- How to create custom search form function including post “tags”
- WordPress search for specific Post Type
- Display result of custom form
- Customize search results to include custom posts and display in a specific template page
- How can i retrive the movies, trailers, news in a single page using search
- Custom Post Title as search term
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Admin – create custom post status and display above table
- custom post template file not shown, instead all the time 404.php
- Set Default Category to Username
- How to allow visitors to filter posts by multiple taxonomies
- show custom post type category dropdown sorting result on same page
- Custom Post Type Rewrite To Include Parent Page(s)
- Thumbnail & Category link aside post
- How do I change the core post search algorithm? Where is it found/constructed?
- redirect to uploaded (wordpress) post after form submission from front-end
- How to include my own css in post
- Custom post types related to same custom post type?
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- Dynamically switch template on click
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- Is it possible to customize the post according to post format in single.php?
- Customize rel=canonical tag for single blog post
- a little direction on custom post type
- disable Tab post on nav-menus page (Admin)
- How to add add more properties to WP_Post object in search results loop
- Format latest/newest post differently
- Custom taxonomy archive page problem
- Tell WP to use a specific template file in posts
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- relating business and products with custom taxonomy?
- Best Way to Add UnEditable HTML to Posts
- How safe is it to delete old posts edits to save database space?
- Two Custom Post Types with Identical Articles Competing for the same Slug
- Custom Post Type archive
- WordPress custom post type with folder structure in slug
- Refresh problem post is duplicated when page is submitted after page reload
- Using setup_postdata() with multi-dimensional array
- Total number of posts in query (category/tag/author/search results/main page…)
- Is codex right on deleting post?
- Check if a custom post type has already been created
- WordPress Query Posts From Category Post on Static Page
- Edit multiple custom post types while saving a new or edited post
- Create a custom posts page
- How to add automatically bootstrap 4 order-lg-1 and order-lg-2 classes for columns in foreach loop based on the count?
- See if a post has a specified tag
- if in category but only with post meta
- How to get different Related Posts
- How to add convenient buttons for new custom post statuses
- How to allow multiple thumbnail upload for Posts?
- add external project to web site wordpress on production
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- Show custom post with custom categories with specific slug
- register_post_type permalink
- Post Form Results to Table in Same page
- HTML Form Submit to table in same page
- Display the 2nd category name of a custom post type without error if its null?
- Auto delete posts based on content text
- How to call posts under a specific category on static front page?
- Querying another post category to match current post and display in loop
- Custom home page with full post for first one only
- Custom Post Limit for homepage only without plugin?
- How to get the form code from the edit page of a specific post?
- Display value of custom field at the beginning of a post
- l accidentally permanently deleted a Draft. There’s any way I can recover it?
- datepicker value in mysql
- Inserting an example of the last 3 post on to the homepage
- Static pages not working
- Optimize CPT-function with a loop
- Add post tags to previously created custom post type
- Can WordPress handle following functionalities?
- Simple Custom Metabox Not Saving
- Get a term each custom post type
- Change default post style to columns
- Post titles and thumbnails as links to custom post types?
- Why does WordPress search returns same number of results for every search query?
- Custom Post Type, post-formats associated to custom post type > 404 archives
- Hide parts of the post content after typing it’s name or searching it by category
- search content of pages and list in wp-admin
- How to display only one category in a custom post type?
- How to exclude the word “class” from being matched in search?
- Adding a custom post type meta field to rss
- How to restore deleted post related with deleted users
- Help with listing current users submitted custom post type in template file
- Delete post from admin but not from database
- Custom Post Type Single Loop Outputting Wrong Post
- add_rewrite_rule and template redirect not working
- Getting post and attached image from subdomain
- Custom post type slideshow background images to insert in a plugin
- Organization of time insensitive content
- Custom Select Query – Selecting the Year?
- Deleting old posts
- How To Use Custom Tax of a Post Type
- How to output all taxonomy links from a custom post type in a menu?