/post-type-search-form

WP plugin that adds a shortcode for searching a specified custom post type

Primary LanguagePHP

Post Type Search Form

Contributors: macbookandrew
Tags: search form, post type, custom post type
Donate link: https://cash.me/$AndrewRMinionDesign
Requires at least: 2.7.0
Tested up to: 4.8.3
Stable tag: 1.0.0
License: GPL2

Adds a shortcode for displaying post type-specific search forms

Description

Adds a shortcode for displaying search forms including only a specified post type.

[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