Description
This plugin has been closed as of September 14, 2018 and is not available for download. This closure is permanent. Reason: Author Request.
Reviews
webdotcom
April 12, 2017
So far its doing what I need. However, when using the shortcode like this:
[wpns_search_form only_search="type,type,type"]
It doesn’t work because code is not looking to see if there’s multiple types. I made a simple modification to your code and now it works. I can use it to search multiple types using that shortcode. Author, simply edit your code here:
wp-nice-search/src/core/Results/Results.php
public function getPostTypes()
{
$post_types = array();
$settings = $this->settings;
if ($settings['wpns_only_search'] != '')
{
// IF THERE'S COMMAS, TREAT AS ARRAY
if(strpos($settings['wpns_only_search'],',')!==false)
{
$type_list = explode(',', $settings['wpns_only_search']);
foreach ($type_list as $type_val)
{
$post_types[] = $type_val;
}
} else {
// IF NOT THEN AS STRING (SINGLE)
$post_types[] = $settings['wpns_only_search'];
}
} else {
Oh and I think it would be much wiser to change your event on the search box to onchange or something because ajax is firing on every key event and that could be troublesome. I changed to min 3.
Update: other improvements: trim s: $.trim(filter) removing white space and easy to make an array of icons for typical post types and show appropriate icon for the post type in results.
Fantastic plugin, does what it says on the tin. Easy to use and so much sleeker having ajax functionality than normal wordpress search.
One very minor gripe – I don’t like the positioning of the search icon (it’s a bit squished and too near the bottom of the search box)- easy enough to change in CSS so only minor issue.
Cristian Romanello
September 3, 2016
Fantastic plugin! It maybe needs one more feature:
– Frontend changing text label for “Search result” and “no results found” (instead of add functions in theme functions.php file)
Your work is much appreciated by us! ??
Cheers
– Chris
The plugin looks neat and nice and works great but misses two things:
1. Ability to select the custom types to search. Currently you can do this but thin it goes and searches all the custom types.
2. Show the result grouped by their type or category.
Other than that it should work great for normal websites with posts and pages only.
Contributors & Developers
“WP Nice Search” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “WP Nice Search” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.