I am a student learning wordpress these days while working with wordpress i though to implement the search filters on my website by default wordpress searches the posts i want to apply filters on search. Let me explain in simple words what i want to do. I have a number of products in my database table a user can search a product by its unique id or by its name. When a user will search select drop down this will show him following options to search with unique id(Brand ID). He may search a product that is being start with specific entered word. I am worried how i can alter the search query of wordpress. If anyone can help me in doing this task? I will highly appreciate.
Leave a Reply
You must be logged in to post a comment.
I hope this code helps you a bit to start.
You have to change the code as your requirement. Also you can see the plugin http://wordpress.org/extend/plugins/advance-wp-query-search-filter/