ez Ajax Search - Simple Ajax Search Plugin for Wordpress



First, log in to your WordPress admin panel and head over to the Plugins section. Click on “Install” » “Upload” and select the downloaded zip-file to install.

After the installation was successful, you should see a new section labeled “Ajax Search Forms” in the navigation menu.


Add Search Forms

In order to add search forms, click on “Ajax Search Forms” » “Add New”. Enter the name of your search form and configure the form with the settings below.

Important note: the option “Post types” is mandatory as you select the post types to search from. Hold CTRL to select multiple post types.

The option “Output builder” is used to show the search results in the search box. Each word separated by a comma will be parsed and replaced by its content, for example:

screenshot-ez-ajax-search.ezplugins.de 2015-06-11 22-18-16

Will show something like this:

screenshot-ez-ajax-search.ezplugins.de 2015-06-11 22-18-42

Possible fields are: title, excerpt, image, categories, tags, price, post_meta::field_name

After you have configured all settings, click on “Publish” on the right side.


Add Search Forms to Pages

There are two ways of adding search forms to pages:

  1. Widgets: go to the Widgets menu (under Design) and add the widget “ez Ajax Search” to a sidebar. After that, select the relevant search form you want to add from the dropdown-list.
  2. Shortcode: use the following shortcode to add it to a page or anywhere else:
    [ezas name="Form Name" /]

    Where “Form Name” is the name of the search form you have added before.


Output builder fields

  • title: post title
  • excerpt: post excerpt
  • image: featured image attached to post types
  • categories: post or product categories. Please note that categories from other post types (such as portfolio) won’t be shown here.
  • tags: post or product tags. Please note that tags from other post types (such as portfolio) won’t be shown here.
  • price: product price from WooCommerce
  • post_meta::field_name: any custom field attached to a post type. Replace field_name to show the value of a custom field.