Taxonomy Drill-down widget is not working correctly

On my site, I have a taxonomy drill down widget running to allow people to search for the dog service they need. Please see Link removed at members request

On the right hand side, you see 'Find a Doggie Service Near You;' drop down on the right hand side. It's basically not much use as it doesn't return the results you ask it to.

For instance, I asked it to find me 'dog daycare' in 'Nottinghamshire', so it came up with this; Link removed at members request The centre daycare company is in Northamptonshire! Nothing to do with Nottinghamshire, so why did it show up in the results?

I checked the directory, and it turns out there are only 3 dog daycares listed on the entire directory, so perhaps this is just totally ignoring the location marker? Why would it do this?

Have also searched for 'dog walkers' 'Northamptonshire' and again got the entire list of dog walkers available across the entire directory.

How can I fix this please?

Thanks

Sally

  • Alexander
    • DEV MAN’s Mascot

    Hi @Sally,

    It does look like location is being ignored altogether. It looks like it's getting the category, but not applying location to the query.

    What plugin are you using for that widget? It could be related to how this plugin works.

    I'm not sure why this isn't working at the moment, but I can test it out if you let me know what plugin you're working with.

    Best regards,

  • Sally
    • The Crimson Coder

    Hi @Alexander Rohmann

    The plugin I'm using for this is http://wordpress.org/plugins/query-multiple-taxonomies/

    By the name of it, I would assume that this plugin would search multiple taxonomies and result in a list of results from both taxonomies selected. But according to what @Arnold just said on the other thread, this is much more complicated than it seems. Is there a simpler way?

    I want to avoid creating custom queries and multiple pages as mentioned in the post @Arnold refers to if possible. I don't understand coding and just want a simple solution if anyone can think of one?

    As it is, my directory is not easily to navigate at all.

    Thanks

    Sally

  • Arnold
    • El Macho WP

    OK the plugin you were using ORs the categories. So if a post is in Nottinghamshire OR Dog Daycare it gets selected. I put on a different plugin which allows selecting AND as well. Ultimate WP Query Search Filter.

    I made a sample form for it as an example.

    The other plugin interfers if it's active so I had to turn it off to get things working.
    Take a look

  • Sally
    • The Crimson Coder

    Thanks @Arnold

    That works much better :slight_smile:

    One thing, is it possible to organise the layout of the pet service? At the moment, all parent and child categories are listed in one long list. Would it be possible to have it more like

    Dog Products
    Dog Bandanas (2)
    Dog Clothing (3)
    Dog Photographers (0)
    Dog Rescues and Charities
    Dog Rescues inc Rehoming Abroad (0)
    Overseas Dog Charities (0)

    just to make it all a bit clearer in there?

    Thanks again :slight_smile:

    Sally

  • Sally
    • The Crimson Coder

    Sorry Arnold, that posted completely differently to how I wanted it to, let me try again

    Dog Products
    -Dog Bandanas (2)
    -Dog Clothing (3)
    -Dog Photographers (0)
    Dog Rescues and Charities
    -Dog Rescues inc Rehoming Abroad (0)
    -Overseas Dog Charities (0)

  • Sally
    • The Crimson Coder

    Still not posted as clearly as I wanted to show you, but basically just want to make it clear that there are parent categories and child categories underneath them. Sorry for the multiple posts :slight_smile:

    Thanks

    Sally

  • Arnold
    • El Macho WP

    You would have to change the plugins code to use optgroup dropdowns. Normal dropdown puts everything as

    <option>Soemthing</option>
    <option>Soemthing Else</option>

    tags. It would need to be changed to

    <optgroup>Something</optgroup>
    <option>SubSomething</option>
    <optgroup>Something Else</optgroup>
    <option>SubSomething Else</option>

    You might ask here

    http://9-sec.com/support-forum/

    and see if the author can make the change for you.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.