Title: WP Live Search
Author: Nick Haskins
Published: <strong>15 de juny de 2015</strong>
Last modified: 24 de juny de 2015

---

Cerca extensions

![](https://ps.w.org/wp-search-live/assets/banner-772x250.png?rev=1181349)

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

![](https://ps.w.org/wp-search-live/assets/icon-256x256.png?rev=1181349)

# WP Live Search

 Per [Nick Haskins](https://profiles.wordpress.org/nphaskins/)

[Baixa](https://downloads.wordpress.org/plugin/wp-search-live.0.9.zip)

 * [Detalls](https://ca.wordpress.org/plugins/wp-search-live/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/wp-search-live/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/wp-search-live/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/wp-search-live/#developers)

 [Suport](https://wordpress.org/support/plugin/wp-search-live/)

## Descripció

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.
 [https://github.com/bearded-avenger/wp-live-search](https://github.com/bearded-avenger/wp-live-search)

Here’s some documentation.
 [http://bearded-avenger.github.io/wp-live-search/](http://bearded-avenger.github.io/wp-live-search/)

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:

type=»»
 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»

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

placeholder=»»
 The text displayed in the input. Defaults to `Search...`.

number=»»
 Total search result to return. Default is 20

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

compact=»true»
 Makes a tiny WP Live Search for use in header widgets and such

dropdown=»true»
 Display search results as a drop-down instead of pushing down the
content around it

results=»»
 The text displayed for the results. Defaults to `entries found`.

results_style=»inside»
 Displays the «entries found» inside of the input area, useful
for using in areas like header widgets where space is minimal.

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

Here are a couple examples:

Default Usage:
 [wp_live_search]

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»]

## Captures

[⌊basic design⌉⌊basic design⌉[

basic design

## Instal·lació

 1. Navigate to ‘Add New’ in the plugins dashboard
 2. Navigate to the ‘Upload’ area
 3. Select `wp-live-search.zip` from your computer
 4. Click ‘Install Now’
 5. Activate the plugin in the Plugin dashboard

#### Using FTP

 1. Download `aesop-core.zip`
 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

## PMF

  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?

Yes

  Does it support showing content?

Yes

  Does it support custom post types?

Yes

  Can I use multiple on one page?

No

  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.

## Ressenyes

![](https://secure.gravatar.com/avatar/303ca3bdf9df4e3485eadaeee99346d025d61284efda746d2280d97753ef60eb?
s=60&d=retro&r=g)

### 󠀁[Votazione](https://wordpress.org/support/topic/votazione-1/)󠁿

 [Clickart Group](https://profiles.wordpress.org/click-artist/) 3 de setembre de
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

![](https://secure.gravatar.com/avatar/c1fd55ac41f6eaeebfc3edf416ecb6038bd2555b73d9a38040cef786c30635d2?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-7281/)󠁿

 [Chrissy](https://profiles.wordpress.org/paperkawaii/) 3 de setembre de 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. 🙂

 [ Llegiu totes les 3 ressenyes ](https://wordpress.org/support/plugin/wp-search-live/reviews/)

## Col·laboradors i desenvolupadors

«WP Live Search» és programari de codi obert. La següent gent ha col·laborat en 
aquesta extensió.

Col·laboradors

 *   [ Nick Haskins ](https://profiles.wordpress.org/nphaskins/)

[Traduïu «WP Live Search» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/wp-search-live)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/wp-search-live/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/wp-search-live/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/wp-search-live/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/wp-search-live/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 0.9

 * 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

#### 0.8

 * 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

#### 0.7.1

 * fixed target=»» feature only receiving one search result

#### 0.7

 * 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

#### 0.6

 * added custom post type support

#### 0.5

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

#### 0.4.1

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

#### 0.4

 * 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

#### 0.3

 * featured image support
 * renamed to WP Live Search

#### 0.2

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

## Meta

 *  Versió **0.9**
 *  Darrera actualització **fa 11 anys**
 *  Instal·lacions actives **30+**
 *  Versió del WordPress ** 3.5.1 o posterior **
 *  Provada fins a **4.2.39**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/wp-search-live/)
 * Etiquetes
 * [live search](https://ca.wordpress.org/plugins/tags/live-search/)[search](https://ca.wordpress.org/plugins/tags/search/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/wp-search-live/advanced/)

## Valoracions

 4.7 sobre 5 estrelles.

 *  [  2 valoracions de 5 estrelles     ](https://wordpress.org/support/plugin/wp-search-live/reviews/?filter=5)
 *  [  1 valoració de 4 estrelles     ](https://wordpress.org/support/plugin/wp-search-live/reviews/?filter=4)
 *  [  0 valoracions de 3 estrelles     ](https://wordpress.org/support/plugin/wp-search-live/reviews/?filter=3)
 *  [  0 valoracions de 2 estrelles     ](https://wordpress.org/support/plugin/wp-search-live/reviews/?filter=2)
 *  [  0 valoracions de 1 estrelles     ](https://wordpress.org/support/plugin/wp-search-live/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-search-live/reviews/#new-post)

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/wp-search-live/reviews/)

## Col·laboradors

 *   [ Nick Haskins ](https://profiles.wordpress.org/nphaskins/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/wp-search-live/)