Adding the DeepSearch Search Form to Your Pages

The DeepSearch plugin allows you to easily add a customizable search form anywhere on your website using a shortcode.

Using the Shortcode

To insert the DeepSearch search form into any page or post, use the following shortcode:

[deepsearch]

This will display the search form with the default settings, searching the post types configured in the plugin’s settings.

Restricting Search to Specific Post Types

You can customize which content types are searched by using the post_types parameter in the shortcode. This allows you to limit the search results to specific post types, such as posts, pages, or any custom post type registered on your site.

Example:

[deepsearch post_types="post,page,custom_type"]

In this example, the search will only be performed on:

  • post — standard blog posts
  • page — standard WordPress pages
  • custom_type — a custom post type registered on your site

You can list any number of post types separated by commas to tailor the search domain to your needs.

How to Add the Shortcode

  1. Edit the page or post where you want the search form to appear.
  2. Insert the shortcode [deepsearch] or the customized version with post_types in a shortcode block or inside the editor.
  3. Update or publish your content.
  4. Visit the page on your site to see the DeepSearch search form in action.

Additional Notes

  • If you do not specify the post_types parameter, DeepSearch will use the default post types set in the plugin’s general settings.
  • Make sure your custom post types are publicly queryable to be searchable by DeepSearch.