Adds a shortcode you can use to show a post type-specific search form.
To use, add
[post_type_search_form post_type="post_type_here"] where you want the search form to display.
Get the code at the GitHub repository.
[post_type_search_form post_type="your_post_type_here"] will display a search form for only posts of the
your_post_type_here type (modify as necessary). If you don’t know the post type key, go to the WordPress backend and add a new post of that type; look in the address bar for
post_type=… and use that in the shortcode.
- Install the plugin
- Add the shortcode where you want the search form to be shown
- First stable version