Plugin nebyl testován na 3 nejnovějších verzích WordPressu. Nemusí už být tedy podporován a u novějších verzí WordPressu může mít problémy s kompatibilitou a může být nestabilní.

WP Live Search


WP Live Search (beta) is a search plugin for WordPress that returns results as the user types for what they are looking. It currently supports posts, pages, post types, including multiple post types, and design modes.

This is very much a working prototype, so please log any issues you find on the Github repo below.

Here’s some documentation.

Add the shortcode [wp_live_search] to a page or something. There’s a few shortcode attributes that you can use, and are as follows:

Your choices are posts or pages. Defaults to posts. You can also pass type,type to search multiple post types. For example type=“recipes,books“

By default this is turned off. Set this to true only if you’re using multiple post types above.

The text displayed in the input. Defaults to Search....

Total search result to return. Default is 20

Show the excerpt along with the title and featured image (if set)

Makes a tiny WP Live Search for use in header widgets and such

Display search results as a drop-down instead of pushing down the content around it

The text displayed for the results. Defaults to entries found.

Displays the „entries found“ inside of the input area, useful for using in areas like header widgets where space is minimal.

An optional target UL parent to send the search results to. Example target="#someotherdiv".

Here are a couple examples:

Default Usage:

Use in Header Widget:
[wp_live_search compact=“true“ dropdown=“true“ results=“found“ results_style=“inside“]

Search through multiple post types:
[wp_live_search multi=“true“ type=“posts,page“]

Snímky obrazovky

  • basic design


  1. Navigate to ‚Add New‘ in the plugins dashboard
  2. Navigate to the ‚Upload‘ area
  3. Select from your computer
  4. Click ‚Install Now‘
  5. Activate the plugin in the Plugin dashboard

Using FTP

  1. Download
  2. Extract the wp-live-search directory to your computer
  3. Upload the wp-live-search directory to the /wp-content/plugins/ directory
  4. Activate the plugin in the Plugin dashboard

Nejčastější dotazy

How do I work it?

It’s a shortcode. Add [wp_live_search] to a page. See above for some options.

What is required for this to work?

The WP REST API (V1) plugin (the official one) from the WordPress REST API Team.

Does it support featured images?


Does it support showing content?


Does it support custom post types?


Can I use multiple on one page?


Can I disable the style sheet from loading?

Yes just use define('WPLS_DISABLE_STYLE', true) and the CSS file will not load. However you will want to make sure you at least copy over .wpls–show and .wpls–hide. JS uses these classes for things and the search may not appear correctly without them.

Can I override the display item?

Yep! Just copy over the function from underscore-template.php (without the function exists) and drop it into any plugin. Note, pluggable functions wont run in a theme file, themes run too late, so this needs to be in a plugin file. From here you can modify the temlate as needed.


3. 9. 2016
Plugin molto bello e efficiente io l’ho utilizzo da mesi sul mio sito web ….aggiornatelo per favore e mettete la possibilità di eliminare la data delle pagine nei risultati di ricerca se no sarò costretto a usare altro tanks
3. 9. 2016
I love this search bar. I have implemented on a site I’m working on, here. Here is some feedback: Remove the placeholder on click. I removed mine with the css: #wpls–input:focus::-webkit-input-placeholder {color:transparent;} #wpls–input:focus::-moz-placeholder {color:transparent;} #wpls–input:-moz-placeholder {color:transparent;} It would also be nice if clicking outside of the search results closed the list. Lastly, keep the clear results button there when you get no results. 🙂
Přečtěte si všechny 3 recenze


WP Live Search je otevřený software. Následující lidé přispěli k vývoji tohoto pluginu.


Přehled změn


  • added some CSS classes wpls–empty and wpls–full to the custom target div to aid in custom theming
  • added logic to prevent searching on escape or arrow keys


  • added „dropdown“ option mode for use in small spaces
  • added „results_style“ option for use in small spaces
  • added „excerpt“ option to show excerpt
  • added five action hooks


  • fixed target=““ feature only receiving one search result


  • fixed results being returned in reverse order
  • added multiple post type support by using type=“typeone,typetwo“ multi=“true“
  • added an option to set the number of results returned
  • added a „compact“ mode option to that it can be used in places like a header widget
  • improved styling


  • added custom post type support


  • added an option to specify a target div for the search results to be sent to
  • replaced all inline js styles with CSS classes


  • removed the search being closed when you click out
  • added an icon that will clear the search


  • dont allow empty values and spaces for search
  • allow enter to search so long as nothing is empty
  • added a template function
  • added searchAction schema
  • misc style improvements
  • added a define to allow CSS file not be loaded
  • returns 20 results for now until we work in pagination/lazy loading


  • featured image support
  • renamed to WP Live Search


  • added some styles
  • added a loading indicator
  • added option to set entries text
  • misc fixes