Using the Search Shortcodes

There are four different shortcodes available for each search instance.

  1. The search box shortcode
  2. Settings shortcode (optional)
  3. Results shortcode (optional)
  4. Two column shortcode (optional)

Each of these shortcodes can be placed into any post/page or custom post type content or into the theme files.

You can find these shortcodes on each search instance options page.

Search box (Simple) shortcode

This is the most used, all-around shortcode. It places the search form anywhere on your site.

Format:

[wpdreams_ajaxsearchpro id=1]

Parameters:
  • id (integer) - the id of the search instance
Settings shortcode (optional)

Shortcodes for placing the settings box elsewhere.

Format:

[wpdreams_asp_settings id=1 element='div']

Parameters:
  • id (integer) - the id of the search instance
Results shortcode (optional)

Shortcodes for placing the results box elsewhere.

Format:

[wpdreams_asp_results id=1 element='div']

Parameters:
  • id (integer) - the id of the search instance
Two column shortcode (optional)

Will place a search box (left) and a result box (right) next to each other, like the one on the demo front page.

Format:

[wpdreams_ajaxsearchpro_two_column id=1 search_width=50 results_width=50 invert=0 element='div']

Parameters:
  • id (integer) - the id of the search instance
  • search_width - (integer) the search bar width (in %, not px)
  • results_width - (integer) the results box width (in %, not px)
  • invert - (0 or 1) inverts the search and results box position from left to right

results matching ""

    No results matching ""