Title: plugin doesnot work
Last modified: August 20, 2016

---

# plugin doesnot work

 *  [queeneve](https://wordpress.org/support/users/queeneve/)
 * (@queeneve)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnot-work/)
 * when i activate my plugin and start to customize it i receive the message
 * Warning: Invalid argument supplied for foreach() in /home/schoolsi/public_html/
   wp-content/plugins/wp-query-search-filter/wp-query-search-filter.php on line 
   146
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/schoolsi/public_html/wp-content/plugins/wp-query-search-filter/wp-query-
   search-filter.php:146) in /home/schoolsi/public_html/wp-includes/pluggable.php
   on line 881
 * and when i use the search form on my website , it doesnot work , it only gets
   the whole search of the posts , even if i use a keyword that is not on the site,
 * any help please?
 * [http://wordpress.org/extend/plugins/wp-query-search-filter/](http://wordpress.org/extend/plugins/wp-query-search-filter/)

Viewing 5 replies - 16 through 20 (of 20 total)

[←](https://wordpress.org/support/topic/plugin-doesnot-work/?output_format=md) [1](https://wordpress.org/support/topic/plugin-doesnot-work/?output_format=md)
2

 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnot-work/page/2/#post-3193295)
 * [@pandypop80](https://wordpress.org/support/users/pandypop80/),
 * > Would I need to create four categories – size, style, price and location?
 * _Yes, you will need to create four categories for your listing. But since you
   are using page for the listing, you will need to add the categories manually,
   because by default, page does not support category. _
 * > then using your plugin create a meta tag for each, such as boatsize, boatstyle,
   > boatprice and boatlocation?
 * _Well, it is taxonomy in the plugin if you using category._
 * > Once I’ve done that create a post for each boat listing making sure it has 
   > all four meta tags attached?
 * _Yes, you MUST add your defined category in your listing, otherwise the plugin
   wont found your listing._
 * > Then do I add the hyperlink for each post to the thumbnails on their respective
   > pages?
 * _The plugin using your theme default search.php to display the result. Usually
   the link is added in the search page by default. As for thumbnail, you will need
   to customize the codes in your search.php. _
 * In my opinion, I think you should using custom post type instead. By using post
   types, you are able to do more customization and features. You can assigned four
   taxonomies to your custom post type. There are many plugins to help you to create
   custom post type and taxonomy out there.
 *  [pandypop80](https://wordpress.org/support/users/pandypop80/)
 * (@pandypop80)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnot-work/page/2/#post-3193296)
 * @ron_dev
 * Thanks for the quick reply once again. I have had a look at your comments and
   gone back to amending the site.
 * I believe your plug in is what I require – I feel that I am almost there with
   it.
 * Right, I have created four categories (Parent categories) – Boat Size, Boat Style,
   Boat Price and Boat Location. I then created more categories, generating the 
   hierarchy such as 10 feet, 20 feet, 30 feet which went below Boat Size and so
   on…
 * I then created a boat listing post (copying the same text and images from the
   previously created page), I checked the categories which related to the listing–
   location, size, cost and style.
 * Once that was sorted I created four category taxonomies using the plug in – Boat
   Size, Boat Style, Boat Price and Boat Location.
 * However, when I refreshed the site – the four taxonomies (drop down filters) 
   I had created had all of the categories listed under each section, rather than
   the specific categories for the titles.
 * The search worked fine, I just assumed that as I created a hierarchy of categories
   with the parent ones having the same name as the taxonomy, the drop down options
   would have paired up some how. Basically I require the category hierarchy to 
   match up top the search filters created – four main sections, with separate drop
   downs, not having all of the same options.
 * Is there any way of doing that, I assume there is, as that’s how I originally
   had it looking using the custom meta option – even though that would not have
   worked. I have also seen that way of filtering options on other websites.
 * I look forward to your advice on the above.
 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnot-work/page/2/#post-3193297)
 * [@pandypop80](https://wordpress.org/support/users/pandypop80/),
 * The plugin currently work with parent category. That’s why you will see all the
   section under parent category. That’s why I recommend you using custom taxonomy.
 * However, the taxonomies that I meant is the ‘post’ taxonomy, not the ‘category’
   taxonomy. You can use plugin such as [this](http://wordpress.org/extend/plugins/custom-taxonomy-creator/)
   to create your post custom taxonomy.
 * When you have custom taxonomy in your boat listing, then you will no longer need
   your category anymore, because taxonomy is identical to category but with more
   feature. If you have created custom taxonomy, let say ‘Boat Size’, then in the
   plugin, you can add ‘Boat Size’ in the form. And you can see that all the ‘Boat
   Size’ values (that you added to your boat listing post eg. 10 feet, 20 feet, 
   30 feet ) as your dropdown option in the search form in the front end.
 *  [pandypop80](https://wordpress.org/support/users/pandypop80/)
 * (@pandypop80)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnot-work/page/2/#post-3193298)
 * BINGO! I can’t thank you enough for that advice – your plugin works just as I
   wanted it to now I have added the recommended one by yourself.
 * I can’t stress how happy I am at this moment. Thanks again!
 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnot-work/page/2/#post-3193299)
 * [@pandypop80](https://wordpress.org/support/users/pandypop80/),
    You are welcome.
   Glad that your problem is solved. 🙂

Viewing 5 replies - 16 through 20 (of 20 total)

[←](https://wordpress.org/support/topic/plugin-doesnot-work/?output_format=md) [1](https://wordpress.org/support/topic/plugin-doesnot-work/?output_format=md)
2

The topic ‘plugin doesnot work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-query-search-filter.svg)
 * [WP Query Search Filter](https://wordpress.org/plugins/wp-query-search-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-query-search-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-query-search-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-query-search-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-query-search-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-query-search-filter/reviews/)

 * 20 replies
 * 3 participants
 * Last reply from: [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnot-work/page/2/#post-3193299)
 * Status: not resolved