{"id":36934,"date":"2015-06-15T19:51:16","date_gmt":"2015-06-15T19:51:16","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-search-live\/"},"modified":"2015-06-24T21:28:45","modified_gmt":"2015-06-24T21:28:45","slug":"wp-search-live","status":"publish","type":"plugin","link":"https:\/\/mai.wordpress.org\/plugins\/wp-search-live\/","author":2258231,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.9","stable_tag":"0.9","tested":"4.2.39","requires":"3.5.1","requires_php":"","requires_plugins":"","header_name":"WP Live Search","header_author":"","header_description":"","assets_banners_color":"79cae2","last_updated":"2015-06-24 21:28:45","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/nickhaskins.com","header_author_uri":"","rating":4.7,"author_block_rating":0,"active_installs":30,"downloads":7208,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"2"},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1181349","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1181349","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.5","0.6","0.7","0.7.1","0.8","0.9"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1181349","resolution":"1","location":"assets"}},"screenshots":{"1":"basic design","2":"compact mode"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[5185,944],"plugin_category":[],"plugin_contributors":[80644],"plugin_business_model":[],"class_list":["post-36934","plugin","type-plugin","status-publish","hentry","plugin_tags-live-search","plugin_tags-search","plugin_contributors-nphaskins","plugin_committers-nphaskins"],"banners":{"banner":"https:\/\/ps.w.org\/wp-search-live\/assets\/banner-772x250.png?rev=1181349","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wp-search-live\/assets\/icon-256x256.png?rev=1181349","icon_2x":"https:\/\/ps.w.org\/wp-search-live\/assets\/icon-256x256.png?rev=1181349","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-search-live\/assets\/screenshot-1.png?rev=1181349","caption":"basic design"}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>This is very much a working prototype, so please log any issues you find on the Github repo below.<br \/>\n<a href=\"https:\/\/github.com\/bearded-avenger\/wp-live-search\">https:\/\/github.com\/bearded-avenger\/wp-live-search<\/a><\/p>\n\n<p>Here's some documentation.<br \/>\n<a href=\"http:\/\/bearded-avenger.github.io\/wp-live-search\/\">http:\/\/bearded-avenger.github.io\/wp-live-search\/<\/a><\/p>\n\n<p>Add the shortcode <code>[wp_live_search]<\/code> to a page or something. There's a few shortcode attributes that you can use, and are as follows:<\/p>\n\n<p>type=\"\"<br \/>\nYour choices are <code>posts<\/code> or <code>pages<\/code>. Defaults to <code>posts<\/code>. You can also pass <code>type,type<\/code> to search multiple post types. For example type=\"recipes,books\"<\/p>\n\n<p>multi=\"\"<br \/>\nBy default this is turned off. Set this to true only if you're using multiple post types above.<\/p>\n\n<p>placeholder=\"\"<br \/>\nThe text displayed in the input. Defaults to <code>Search...<\/code>.<\/p>\n\n<p>number=\"\"<br \/>\nTotal search result to return. Default is 20<\/p>\n\n<p>excerpt=\"true\"<br \/>\nShow the excerpt along with the title and featured image (if set)<\/p>\n\n<p>compact=\"true\"<br \/>\nMakes a tiny WP Live Search for use in header widgets and such<\/p>\n\n<p>dropdown=\"true\"<br \/>\nDisplay search results as a drop-down instead of pushing down the content around it<\/p>\n\n<p>results=\"\"<br \/>\nThe text displayed for the results. Defaults to <code>entries found<\/code>.<\/p>\n\n<p>results_style=\"inside\"<br \/>\nDisplays the \"entries found\" inside of the input area, useful for using in areas like header widgets where space is minimal.<\/p>\n\n<p>target=\"\"<br \/>\nAn optional target UL parent to send the search results to. Example <code>target=\"#someotherdiv\"<\/code>.<\/p>\n\n\n\n<p>Here are a couple examples:<\/p>\n\n<p>Default Usage:<br \/>\n    [wp_live_search]<\/p>\n\n<p>Use in Header Widget:<br \/>\n    [wp_live_search compact=\"true\" dropdown=\"true\" results=\"found\" results_style=\"inside\"]<\/p>\n\n<p>Search through multiple post types:<br \/>\n    [wp_live_search multi=\"true\" type=\"posts,page\"]<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Navigate to 'Add New' in the plugins dashboard<\/li>\n<li>Navigate to the 'Upload' area<\/li>\n<li>Select <code>wp-live-search.zip<\/code> from your computer<\/li>\n<li>Click 'Install Now'<\/li>\n<li>Activate the plugin in the Plugin dashboard<\/li>\n<\/ol>\n\n<h4>Using FTP<\/h4>\n\n<ol>\n<li>Download <code>aesop-core.zip<\/code><\/li>\n<li>Extract the <code>wp-live-search<\/code> directory to your computer<\/li>\n<li>Upload the <code>wp-live-search<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin in the Plugin dashboard<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I work it?<\/dt>\n<dd><p>It's a shortcode. Add [wp_live_search] to a page. See above for some options.<\/p><\/dd>\n<dt>What is required for this to work?<\/dt>\n<dd><p>The WP REST API (V1) plugin (the official one) from the WordPress REST API Team.<\/p><\/dd>\n<dt>Does it support featured images?<\/dt>\n<dd><p>Yes<\/p><\/dd>\n<dt>Does it support showing content?<\/dt>\n<dd><p>Yes<\/p><\/dd>\n<dt>Does it support custom post types?<\/dt>\n<dd><p>Yes<\/p><\/dd>\n<dt>Can I use multiple on one page?<\/dt>\n<dd><p>No<\/p><\/dd>\n<dt>Can I disable the style sheet from loading?<\/dt>\n<dd><p>Yes just use <code>define('WPLS_DISABLE_STYLE', true)<\/code> 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.<\/p><\/dd>\n<dt>Can I override the display item?<\/dt>\n<dd><p>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.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.9<\/h4>\n\n<ul>\n<li>added some CSS classes wpls--empty and wpls--full to the custom target div to aid in custom theming<\/li>\n<li>added logic to prevent searching on escape or arrow keys<\/li>\n<\/ul>\n\n<h4>0.8<\/h4>\n\n<ul>\n<li>added \"dropdown\" option mode for use in small spaces<\/li>\n<li>added \"results_style\" option for use in small spaces<\/li>\n<li>added \"excerpt\" option to show excerpt<\/li>\n<li>added five action hooks<\/li>\n<\/ul>\n\n<h4>0.7.1<\/h4>\n\n<ul>\n<li>fixed target=\"\" feature only receiving one search result<\/li>\n<\/ul>\n\n<h4>0.7<\/h4>\n\n<ul>\n<li>fixed results being returned in reverse order<\/li>\n<li>added multiple post type support by using type=\"typeone,typetwo\" multi=\"true\"<\/li>\n<li>added an option to set the number of results returned<\/li>\n<li>added a \"compact\" mode option to that it can be used in places like a header widget<\/li>\n<li>improved styling<\/li>\n<\/ul>\n\n<h4>0.6<\/h4>\n\n<ul>\n<li>added custom post type support<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>added an option to specify a target div for the search results to be sent to<\/li>\n<li>replaced all inline js styles with CSS classes<\/li>\n<\/ul>\n\n<h4>0.4.1<\/h4>\n\n<ul>\n<li>removed the search being closed when you click out<\/li>\n<li>added an icon that will clear the search<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>dont allow empty values and spaces for search<\/li>\n<li>allow enter to search so long as nothing is empty<\/li>\n<li>added a template function<\/li>\n<li>added searchAction schema<\/li>\n<li>misc style improvements<\/li>\n<li>added a define to allow CSS file not be loaded<\/li>\n<li>returns 20 results for now until we work in pagination\/lazy loading<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>featured image support<\/li>\n<li>renamed to WP Live Search<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>added some styles<\/li>\n<li>added a loading indicator<\/li>\n<li>added option to set entries text<\/li>\n<li>misc fixes<\/li>\n<\/ul>","raw_excerpt":"A super light-weight live search plugin that utilizes the WP REST API.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/36934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=36934"}],"author":[{"embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nphaskins"}],"wp:attachment":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=36934"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=36934"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=36934"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=36934"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=36934"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=36934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}