• 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 15 replies - 1 through 15 (of 20 total)
  • Plugin Author TC.K

    (@wp_dummy)

    Have you add taxonomy in the search?

    Plugin Author TC.K

    (@wp_dummy)

    already updated new version..Try it out and see if the problem is fixed.

    Thread Starter queeneve

    (@queeneve)

    i tried the new version

    the error in the dashboard is not appearing anymore

    but the search widget on the website is not working properly

    I am sure that this plugin is what I need but I still I cannot use it
    is these any documentation for it?

    Thread Starter queeneve

    (@queeneve)

    when i use any search form it gets all the posts of the site , even when i use keywords not on the website

    Plugin Author TC.K

    (@wp_dummy)

    Can you describe more on how the widget not working properly?
    Did you select the post types that you want the search to go through?

    Thread Starter queeneve

    (@queeneve)

    dear ron
    thanks for help

    please check this link , in the search widget choose in the area the word Roushdy

    http://goo.gl/Bxxeh

    this word is not in the blog itself , but when i search you will find all the posts appear in the results area

    Plugin Author TC.K

    (@wp_dummy)

    Hi,
    Did you set the Boolean relationship between the meta queries?
    You should select AND, so that the search must meet the requirement of all your input. If you use OR, the search will bypass the result from “Roushdy” but still got the result from your Level value.

    Note that, even you left empty on “Search All” Text, the search will still go through ‘all’ of your meta value. So if i choose ‘Roushdy’ in Area, and click search. Then the search will still go through your ‘Level’ meta key with all the meta values. So if a post have a ‘Level’ meta key it will be shows at the result.

    Thread Starter queeneve

    (@queeneve)

    1) I choose the Boolean relationship to be AND
    2) I donot want to use the Taxonomy , so I use only the Meta feilds
    3) all the fields now are fake , in other words no post has the tag with the name of “area1, area2,Level1 “
    4) still I have all posts appear in the results

    Plugin Author TC.K

    (@wp_dummy)

    Okay, I see what is your problem.

    The search is make use of WP_Query features.
    Which mean it doesn’t really ‘search’ the post, it just filter. The plugin works like this way.

    1. Fetch all the posts from the post_type you selected in the plugin.(if you have not selected post type in the plugin, then it will get all of your posts from all post type including post, page, custom post type etc)

    2. From the posts that get from step 1, it will filter the posts and get the posts matches your meta key.

    3. From the posts that get from step 2, it will filter the posts again and get the posts that match the meta value.

    Your problem is, your process stop at step 2 because there are no meta key found, thus it will get back to step 1, which is why you get all the posts.

    My advise, try some real meta key and value, then you will see the result.

    Also you can goto see the documentation of WP_QUERY, to get better understand of the concept.

    Thread Starter queeneve

    (@queeneve)

    I tried real values but it still shows that whole posts of the site
    is there any direct email that i send you print screen or wp credentials to check it?
    thanks

    Plugin Author TC.K

    (@wp_dummy)

    Well, you can goto here to get my email.

    Plugin Author TC.K

    (@wp_dummy)

    @queeneve, I just update the plugin. Try it and tell me if it is work.

    Firstly, the plugin looks great and is just what I need. However, I am having similar issues getting it to filter through my items and work correctly.

    I am currently working on a website which sells narrowboats. The end user will simply use the website to search for a suitable boat, then email/phone to purchase/view the boat.

    The search criteria is categorised in four sections – size, style, price and location. The owner has two locations where they sell the narrowboats from, which I have added in my menu anyway as a drop down from ‘Boats For Sale’. I was the planning on creating a simple thumbnail button for each boat, which would go to the specific page listing size, style, price etc and also show some images in a gallery. I have done all of that in pages, rather than posts/categories.

    Search by keyword works correctly – but that’s only if you know what you are looking for. When I use the drop downs for each category there is never a search result, even if I leave each one as ‘All’ for each.

    Are you able to give me some advice on this matter please and point me in the right direction.

    I look forward to a reply.

    Plugin Author TC.K

    (@wp_dummy)

    @pandypop80,
    Correct me if I am wrong – you are using page instead of post for publishing your boat listing. If this is the case, as i know by default categories can only be assigned to posts, not to pages in WordPress. How do you categories your boat listing in size, style, price and location? Note that, the dropdown search form is not actually ‘search’ the keyword, in fact its filter the keyword from categories and taxonomies. It is using WP_QUERY for this filtering. Thus, the plugin will only work if you have categories/taxonomies assigned to your page.

    Thanks for your swift response.

    If you drop done size it’s in feet, style is the different style names, price starts at £30,000 then moves up by £10,000 each time up to £60,000 and location is just the two locations. As mentioned previously each boat will have it’s own listing with images and describing text. The idea would be the user could look for a 40 foot boat, cruiser style, priced at £40,000 at one of the locations. Each boat listing will have information relating to each category.

    Would I need to create four categories – size, style, price and location? Then using your plugin create a meta tag for each, such as boatsize, boatstyle, boatprice and boatlocation? Once I’ve done that create a post for each boat listing making sure it has all four meta tags attached? Then do I add the hyperlink for each post to the thumbnails on their respective pages?

    Can you please confirm if that’s what I need to do next. Again, I really appreciate your help on this matter.

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