Support » Plugin: WP Query Search Filter » 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/

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author TC.K

    (@wp_dummy)

    @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.

    @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

    (@wp_dummy)

    @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 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.

    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

    (@wp_dummy)

    @pandypop80,
    You are welcome. Glad that your problem is solved. 🙂

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘plugin doesnot work’ is closed to new replies.