Skip to content

Commit

Permalink
0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Bearded Avenger committed Jun 18, 2015
1 parent 0f1e589 commit dd8de43
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
24 changes: 14 additions & 10 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,41 @@ Plugin URI: http://nickhaskins.com/wpls
Tags: search, live search
Requires at least: 3.5.1
Tested up to: 4.2.1
Stable tag: 0.6
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 future plans to expand to custom post types.
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, pages, post types, including multiple post types.

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=""
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=""
multi=""
By default this is turned off. Set this to true only if you're using multiple post types above.

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

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

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

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

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


Expand Down Expand Up @@ -83,10 +83,14 @@ Yes just use `define('WPLS_DISABLE_STYLE', true)` and the CSS file will not load

== Screenshots ==

1.
1. basic design
2. compact mode

== Changelog ==

= 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"
Expand Down
4 changes: 2 additions & 2 deletions wp-live-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: WP Live Search
* Plugin URI: http://nickhaskins.com
* Description: A super light-weight live search plugin that utilizes the WP REST API
* Version: 0.7
* Version: 0.7.1
* GitHub Plugin URI: https://github.com/bearded-avenger/wp-live-search
*/

Expand All @@ -20,7 +20,7 @@
}

// Set some constants
define('WP_LIVE_SEARCH_VERSION', '0.7');
define('WP_LIVE_SEARCH_VERSION', '0.7.1');
define('WP_LIVE_SEARCH_DIR', plugin_dir_path( __FILE__ ));
define('WP_LIVE_SEARCH_URL', plugins_url( '', __FILE__ ));

Expand Down

0 comments on commit dd8de43

Please sign in to comment.