Search on location with post meta

Forums › Forums › Search & Filter Pro › Search on location with post meta

Viewing 5 posts – 11 through 15 (of 15 total)
  • Ross Moderator
    #29956
    This reply has been marked as private.
    Anonymous
    #29975

    Dear ross,

    i’ve re-activated your account. You should have received an email to change your password.

    Thanks

    Ross Moderator
    #29986

    Hi Kenny

    Ok so I had a look.

    So it seems that the plugin you use is doing something I consider to be extremely strange.

    When you assign multiple fields in the front end plugin (not sure the one you are using), what it does is combine all your values into a single post_meta value – so when you assign Belgium & France, instead of creating two seperate values for Belgium and France, it concatenates them with a |.

    This is terrible for searching, and also logically speaking a bit bizarre – why wouldn’t you want to give each location its own seperate values.

    Now a great plugin I use for post meta is Advanced Custom Fields – I’ve not used any of their front end functions before but it seems to be documented:

    http://www.advancedcustomfields.com/resources/create-a-front-end-form/

    Unfortunately I don’t think you could get any search plugin to search a post meta structure like that without using some kind of expensive queries probably using %like%.

    PS, you’re also on an outdated version of Search & Filter which we don’t usually provide support for however the problem you describing of course still exists in the latest version.

    Thanks

    Ross Moderator
    #29987

    Just to add, it may be possible with your front end form/submission plugin to save the data in different ways in the database – in this case I would look at something like taxonomies, or a more efficient method with the post meta.

    Thanks

    Anonymous
    #30215

    Hi Ross,

    thanks for investigating this. Now we know the reason why it’s not working so that’s great. Just need to fix it 😉

    thanks!

    Kenny

Viewing 5 posts – 11 through 15 (of 15 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.