=== WP Live Search === Contributors: nphaskins Author URI: http://nickhaskins.com Plugin URI: http://nickhaskins.com/wpls Tags: search, live search Requires at least: 3.5.1 Tested up to: 4.2.1 Stable tag: trunk License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html A super light-weight live search plugin that utilizes the WP REST API. == Description == WP Live Search is a search plugin for WordPress that returns results as the user types for what they are looking. It currently supports posts and pages with support for custom post types coming with the next update. 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) 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`. placeholder=“” The text displayed in the input. Defaults to `Search...`. results=“” The text displayed for the results. Defaults to `entries found`. target=“” An optional target UL parent to send the search results to. Example target="#someotherdiv". == Installation == 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 == Frequently Asked Questions == = 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? = Not yet = Does it support custom post types? = Not yet = 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. == Screenshots == 1. Default styling for the search == Changelog == = 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