Changeset 1184784
- Timestamp:
- 06/20/2015 03:47:02 PM (11 years ago)
- Location:
- wp-search-live
- Files:
-
- 30 added
- 1 edited
-
tags/0.8 (added)
-
tags/0.8/LICENSE.txt (added)
-
tags/0.8/README.txt (added)
-
tags/0.8/index.php (added)
-
tags/0.8/public (added)
-
tags/0.8/public/assets (added)
-
tags/0.8/public/assets/css (added)
-
tags/0.8/public/assets/css/index.php (added)
-
tags/0.8/public/assets/css/style.css (added)
-
tags/0.8/public/assets/img (added)
-
tags/0.8/public/assets/index.php (added)
-
tags/0.8/public/assets/js (added)
-
tags/0.8/public/assets/js/util--wp-api.js (added)
-
tags/0.8/public/assets/js/wp-live-search.js (added)
-
tags/0.8/public/assets/sass (added)
-
tags/0.8/public/assets/sass/source (added)
-
tags/0.8/public/assets/sass/source/_base.scss (added)
-
tags/0.8/public/assets/sass/source/_loader.scss (added)
-
tags/0.8/public/assets/sass/source/_mixins.scss (added)
-
tags/0.8/public/assets/sass/source/_variables.scss (added)
-
tags/0.8/public/assets/sass/style.scss (added)
-
tags/0.8/public/class-wp-live-search.php (added)
-
tags/0.8/public/includes (added)
-
tags/0.8/public/includes/class.assets.php (added)
-
tags/0.8/public/includes/class.shortcode.php (added)
-
tags/0.8/public/includes/template-function.php (added)
-
tags/0.8/public/includes/underscore-template.php (added)
-
tags/0.8/readme.md (added)
-
tags/0.8/uninstall.php (added)
-
tags/0.8/wp-live-search.php (added)
-
trunk/README.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-search-live/trunk/README.txt
r1183875 r1184784 6 6 Requires at least: 3.5.1 7 7 Tested up to: 4.2.1 8 Stable tag: 0. 7.18 Stable tag: 0.8 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 == Description == 15 15 16 WP Live Search is a search plugin for WordPress that returns results as the user types for what they are looking. It supports posts, pages and custom post types.16 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. 17 17 18 18 This is very much a working prototype, so please log any issues you find on the Github repo below. 19 [https://github.com/bearded-avenger/wp-live-search](https://github.com/bearded-avenger/wp-live-search) 19 20 20 [https://github.com/bearded-avenger/wp-live-search](https://github.com/bearded-avenger/wp-live-search) 21 Here's some documentation. 22 [http://bearded-avenger.github.io/wp-live-search/](http://bearded-avenger.github.io/wp-live-search/) 21 23 22 24 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: 23 25 24 type= “”26 type="" 25 27 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" 26 28 27 multi= “”29 multi="" 28 30 By default this is turned off. Set this to true only if you're using multiple post types above. 29 31 30 placeholder= “”32 placeholder="" 31 33 The text displayed in the input. Defaults to `Search...`. 32 34 33 results=“” 35 number="" 36 Total search result to return. Default is 20 37 38 excerpt="true" 39 Show the excerpt along with the title and featured image (if set) 40 41 compact="true" 42 Makes a tiny WP Live Search for use in header widgets and such 43 44 dropdown="true" 45 Display search results as a drop-down instead of pushing down the content around it 46 47 results="" 34 48 The text displayed for the results. Defaults to `entries found`. 35 49 36 number=""37 Total search result to return. Default is 20 50 results_style="inside" 51 Displays the "entries found" inside of the input area, useful for using in areas like header widgets where space is minimal. 38 52 39 compact="true" 40 Makes a tiny WP Live Search for use in header widgets and such 41 42 target="" 53 target="" 43 54 An optional target UL parent to send the search results to. Example `target="#someotherdiv"`. 44 55 56 --- 57 58 Here are a couple examples: 59 60 Default Usage: 61 `[wp_live_search]` 62 63 Use in Header Widget: 64 `[wp_live_search compact="true" dropdown="true" results="found" results_style="inside"]` 65 66 Search through multiple post types: 67 `[wp_live_search multi="true" type="posts,page"]` 45 68 46 69 == Installation == … … 71 94 72 95 = Does it support showing content? = 73 Not yet 96 Yes 74 97 75 98 = Does it support custom post types? = … … 77 100 78 101 = Can I use multiple on one page? = 79 No .102 No 80 103 81 104 = Can I disable the style sheet from loading? = 82 Yes just use `define('WPLS_DISABLE_STYLE', true)` and the CSS file will not load. 105 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. 106 107 = Can I override the display item? = 108 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. 83 109 84 110 == Screenshots == … … 87 113 88 114 == Changelog == 115 116 = 0.8 = 117 * added "dropdown" option mode for use in small spaces 118 * added "results_style" option for use in small spaces 119 * added "excerpt" option to show excerpt 120 * added five action hooks 89 121 90 122 = 0.7.1 =
Note: See TracChangeset
for help on using the changeset viewer.