WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Does not query any results

[Resolved] Does not query any results

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Shane Welland

    @shane-welland

    Does it generate the ‘no posts found’ message on the results page? Are you able to provide examples of what your tax terms are as well, it might be difficult to diagnose otherwise.

    Thanks for the reply. I get nothing. I have a page set up for registry that the plugin defaults to for search.

    Below is my tax terms

    register_taxonomy("Model", array("registry"), array("hierarchical" => true, "label" => "Model", "singular_label" => "Model", "rewrite" => true));
    register_taxonomy("Year", array("registry"), array("hierarchical" => true, "label" => "Year", "singular_label" => "Year", "rewrite" => true));

    Here is an example page with the widget present try and perform a search for that identical item. it goes to no the blank registry page.

    Also, is it possible to search by only one tax term and query a result for that term. I know that it has two selected by default but i want my users to be able to pick and choose how they search.

    Plugin Author Shane Welland

    @shane-welland

    Ok then, thanks for the example! Firstly, are using the ‘[acps_results]’ shortcode on your results page? If not, that would be the problem.

    Secondly, regards to your next point, its actually something I should have rolled out in the last update so I’ll be looking to release a small update at the weekend that caters for ‘All Terms’ as a dropdown too 🙂

    Yes that was my issue. Thank you.

    Any word on that update?

    Plugin Author Shane Welland

    @shane-welland

    Fantastic, glad it helped.

    I’ve just released a quick update which should allow you to add the option to search by all terms (you can turn this on and off in the form edit pages). Also I’d really appreciate if you could leave a quick review if you have the time 🙂

    I am able to return a result based on only one tax like the new update is supposed to, but if i try and search for just a keyword and no tax i get this

    Warning: Invalid argument supplied for foreach() in

    I also tried to run a search for an exact item with a keyword and both tax and it returns nothing found.

    Any thoughts?

    Plugin Author Shane Welland

    @shane-welland

    Ah sorry yes, it was expecting an array since before you would always have one fed in. If you download the files again it should fix all of the above issues. Thanks for the heads up on that one!

    Sorry to be a pain. My search is still returning no results for keyword only searches.

    also, is there an option for pagination?

    Plugin Author Shane Welland

    @shane-welland

    Hm are you able to provide an example page for me again? I’ll be adding pagination in the next ‘major’ update but it’s not something that will be out for a few weeks I’m afraid.

    Sure If you go to my test site you will see the plugin. I need users to be able to search by model or year or keyword all all three. Searching by the Tax’s works fine. Its when i search for a keyword that nothing shows up. I need it so that users can enter what we call the “registry number” and find there item. below is an example of a number that exists in my custom post type.

    RJB5636

    Now that I’m thinking about it, its in a custom field where the registry number is.
    Is there any way to get that to work?

    Plugin Author Shane Welland

    @shane-welland

    Ah I see. The keyword search is working off of the WP_Query Search Parameter and in doing so will only search the post content, rather than any custom fields / taxonomies. Unfortunately this means that currently you won’t be able to search for the individual registry numbers using the plugin. I may add Custom Field functionality but as it stands the plugin is only really designed for taxonomies. Just out of interest, how are the registry numbers set up?

    Its not auto incremented. Its just a custom field that we enter in the next number in the list.

    Is there any way i could pay you to add this feature in for me? I need it done asap.

    Plugin Author Shane Welland

    @shane-welland

    I see, I’ll take a look at it but I just don’t have the capacity to roll it out any sooner at the moment. If there are any developments however, I’ll keep you posted.

    is there any shortcodes for result?

    Plugin Author Shane Welland

    @shane-welland

    The only shortcode for results is [acps_results], which you need on the results page (either in the template or in the page content).

    If you jump over the to FAQ it explains exactly how to theme your results page/ loop and also includes information about any shortcodes you need to include.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Resolved] Does not query any results’ is closed to new replies.