wp-nice-search

外掛說明

這個外掛已於 2018 年 9 月 14 日關閉,且不提供下載。 這個外掛已永久關閉。 原因: 開發者要求

使用者評論

2017 年 4 月 12 日
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.
2016 年 9 月 3 日 1 則留言
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.
2016 年 9 月 3 日
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
2016 年 9 月 3 日 2 則留言
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.
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WP Nice Search〉的開發相關工作。

參與者

將〈WP Nice Search〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄