Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Post Meta Values With Spaces

Viewing 6 posts - 1 through 6 (of 6 total)
  • Highfilter
    #1114

    It seems the search does not like spaces in the Post Meta values. I’m using a custom field plugin and when you add a field select with multiple options, if you don’t specifically enter a value, it creates one based off the label. When I add my values in Search Filter Pro, using the Auto-Suggest, it grabs the values with spaces fine – but when I search on the front-end it does not return any results.

    Is there a way to have Search Filter Pro match a value with spaces in it? The funny thing is, if I edit the query in the URL after searching, and manually add a space in the URL, the results show up.

    Example, manually adding a space between “KootenayRockies” makes it display results…

    Search (no results):
    /search/?_sfm_region=KootenayRockies&sf_ajax_timestamp=1401719498218

    Manually Edited (returns results):
    /search/?_sfm_region=Kootenay Rockies&sf_ajax_timestamp=1401719498218

    Ross Moderator
    #1119

    Hey Highfilter

    I was aware of this actually – it is not good practice to have meta values with spaces (labels should be used to display text with spaces and escape characters), but it doesn’t mean that users will not do this! (I was enforcing best practice, which I guess is not best practice…)

    I’m updating the plugin today and I’ll be sure to include this as an fix as I know exactly where the problem lies 🙂

    Highfilter
    #1123

    I agree on best practice to not use spaces (in other CMS’s I have used it forces no spaces) but the fields can be client controlled and I guess if you don’t specify a value the plugin just adds it based on the label and doesn’t remove spaces or capitals.

    Thanks for the update.

    Ross Moderator
    #1137

    Hey Highfilter

    This should now be included in the latest 1.1.5 update – check your plugins dashboard for the update 🙂

    Highfilter
    #1147

    Works well. Thank you. 🙂

    Ross Moderator
    #1159

    No worries 🙂 Would really appreciate if you could leave us a review? Every little helps 😉

    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/reviews/#comment

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.