Run WordPress SearchPRO

The ‘Run WordPress Search’ action initiates a WordPress search. It redirects the web browser to the normal WordPress search results page.

Adding This Action

To add a ‘Run WordPress Search’ action:

  1. When editing your form, click the ‘Actions’ icon at the top of the page. The ‘Actions’ sidebar will open on the right-hand side of the page.
  2. Click the ‘Add’  icon to add a new action.
  3. Select ‘Run WordPress Search’ from the Action pulldown. A series of settings will appear.

As with all sidebars in WS Form, click the ‘Save’ button at the bottom to save your changes, or click ‘Cancel’ to disregard your changes.

The ‘Run WordPress Search’ action settings are as follows:

When should this action run?

You can choose to run the WordPress hook when the form is saved, submitted, or both.

Search Query Field

Select the field you would like to use for the search query. The content of that field will be used as the keyword(s) of the WordPress search.

Filter By Post Types

This feature enables you to limit the search to certain post types. To add a post type:

  1. Click the ‘Add’  icon to add a new post type.
  2. Select the post type from the dropdown.
  3. Repeat this for each post type you wish to filter by.