Uncategorized

Wordpress Search Filter Plugins

Oleh takien• 20 Komentar Arsip

May be you just wondering how to filter the WordPress search result by category. It’s possible by adding some function to your wordpress, but if you don’t familiar with PHP, I just write a plugin for you called WP Search Filter.

This plugin is simply add a dropdown categories next to the search form. If one of the category is selected, then it will only search on that category.

Actually it’s also possible to filter the search result by custom field , but I will do it later 😀

Installation
Just install the plugin and activate. Make sure your search form is called from:
[php title=””]

get_search_form();

[/php]

Demo:
Please see the live demo at the top right of this website.

[information title=”Download”]
Download WP Search Filter Here.
[/information]

Tulisan ini sudah berumur: 16 tahun 5 bulan 11 hari. Informasi di dalamnya mungkin sudah tidak relevan, tapi nilai historisnya sangat berharga, terutama bagi saya sebagai penulisnya.

Tag Terkait:

Komentar (20)

Arsip Statis
Jasja ter Horst
@ takien, how dow you use the WordPress Search Filter plugin? Does it atomically ad categories to your default search form after activation?
fcolondam
wow keren :thumbup: nice info gan
inuel
ini mah udah nyeo mas, salam kenal ya, trimakasih kunjungannya
TKB
Waw, bahane planetan semuwa mas? Nggak paham nih aku? 😆
TKB
Walah, komengnya kok ndadak dimoderasi to mas? Apa nggak percaya nih?
aagun2006
mantabs tuh gan, tp baru denger reviewna lom coba mau ta coba dulu
zon
cool… keren nih, bisa dipasang kapan2 blognya jg keren, polos tapi jadi unik thanks kunjungannya mas, salam kenal 😀 .
Harry
belum kepikir sampai search filter nich. ijin download mas. makasih.
Jon Bukiewicz
Thank you so much! Your code is a lifesaver – you are very much appreciated.
julianusginting
mantaff gan…
rainer.flame
mantap.. ide bagus nih buat mengoptimalisasi search di WP. thx banget gan
Hari Setiawan
Nice Plugin Juragan 😀 Ijin sedot 😀
Jojo
Mas, filternya keren, aku dah coba, tapi ada beberapa masalah: 1. Aku udah bikin category – This works perfectly using your search form 2. Aku punya banyak tags – ini yang agak bikin bingung hehehe Tags di navigasi aku hard-coded sehingga membentuk sub category. Contoh: Jual: (link pakai tags) – Tanah – Villa Destinations: (link pake tags semua) – Asia – Afrika dll Harga (link pake tag juga) – 1M – 2M Ada cara gak biar plugin tetep bisa dipakai tetapi form-nya di hard code? Thanks ya
Niraj
I just want t o know, Can I add drop-down box of taxonomies? In my website, taxonomies is the major concentration in the terms of search. Is it possible?
paul
thank you for your work. I would love to know how to filter by custom field so bad!
Hans
Bug: If i add some new replacement and click updating. The same replacements are double listed.I´m using the newest version of WP. Suggestion: It would be very useful for SEO to enable limiting the frequency of the replacement for every single keyword. The reason is, that for example highlighting one word with “bold” to often in one post isn´t optimal for seo. Thanks for your great work
Hans
I´ve meant, that if you add a new replacement line, this line is listed two times for every line that is new added. So if i add 5 new Replacements (5 lines). This lines are double listed and i have to delete/clear the inputs of this doublettes. It would be very very nice, if you would include the limitation (eg. “only replace first word found” function or “custom choose”), because i personally use your great plugin for highlighting words and in many cases one article includes 10 highlighted words (not so useful). Thanks for your support and work
Mike
Hi I’ve been trying to modify your plugin.  I need a multiple category search with text, but one that doesn’t return a result if the search text isn’t within the sub categories selected. I’ve got this far: function wp_search_form($form) {$form = ” . __(‘Search for:’) . ”.wp_dropdown_categories(‘depth=2&child_of=14&orderby=name&hide_empty=1&show_option_all=Country’).’ ‘.wp_dropdown_categories(‘depth=0&child_of=62&orderby=name&hide_empty=1&hierarchical=1&show_option_all=Colour/Type’).’ ‘.wp_dropdown_categories(‘depth=3&child_of=32&orderby=name&hide_empty=1&show_option_all=Grape’).”;return $form;} but this brings up a second copy of the categories dropdowns and simply returns an answer with the text in the post even if the post isn’t with the categories selected? cheers  Mike
andrea
Hi, is it possible to search multiple categories? I’m in desperate need of help. thanks!
Toure
Hello, I might be too late asking questions here, but I looking to use a search form where a user can simply select from a list of categories without any entries into a search form and get a list of items from that category. I am building a search form for a cars dealership. Any idea why I can implement a custom search.php for that? thanks