Search form

Post Type Search Form

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.

Installation

  1. Install the plugin
  2. Add the shortcode where you want the search form to be shown

Changelog

1.0

  • First stable version

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.