Forums Forums Search & Filter Pro S&F reverts to values instead of labels for choice fields

Tagged: , ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Anonymous
    #71546

    Hello. I have my website up and working and the search function works as expected. The only problem I’m facing is that occasionally the search fields revert back to picking up values when I have stipulated the post meta as an ACF field. It seems to be a cache issue, as if I re-build the cache it goes back to using the values.

    This is especially an issue because it’s a dual language website and so the checkbox options don’t display the Japanese. Any suggestions as to why this might be happening. Does it have something to do with Ajax being selected?

    http://www.edonoyu.com/

    Regards,
    Ross

    Anonymous
    #71547

    Sorry, one correction: It seems to be a cache issue, as if I re-build the cache it goes back to using the **labels””.

    Trevor
    #71592

    Hi Ross

    Up to and including version 2.2.0 of Search & Filter, the plugin only supports simple ACF fields. The next step up are the Relational fields. We have added this support in the forthcoming 2.3.0, which is due out soon. Maybe this is the problem?

    Anonymous
    #71598

    Sorry, I don’t think my question was clear enough. I’m not using relational fields–just checkbox and dropdown menus for which I need to input “values : labels” for the choices.

    blue : Blue
    red : Red

    … and so forth. I change the labels for Japanese while keeping the values the same.

    blue : 青
    red : 赤

    This works perfectly with the search function displaying the correct label based on the language. But then occasionally the checkboxes change to display the values (which is especially a problem when the user has selected Japanese). This happens every so often and if I rebuild the cache it displays correctly again, but I can’t work out why the problem occurs in the first place. I’m wondering if there is some setting I should change?

    Trevor
    #71600

    Ah, my bad.

    Are you using a language plugin (like WPML or polylang)?

    Anonymous
    #71602

    Yes, I’m using WPML.

    Trevor
    #71604

    I will need to refer this to Ross, the developer, but I cannot see that you are doing anything wrong.

    Trevor
    #71899

    Do you think that this is related to the issue in this thread?

    https://support.searchandfilter.com/forums/topic/issues-wpml-the-event-calendar/#post-71820

    Anonymous
    #75885

    Hi Trevor,

    Sorry for the delayed reply. I wish to report the above issue as a bug (it is not related to the thread you mentioned above). The issue has happened to be numerous times over the past few weeks, and each time a manual rebuild of the cache in the back-end resolves the issue… temporarily.

    I’ve been trying to work out what exactly causes the issue, but to no avail. I can’t logically see one change that I make on the back-end that results in the plugin reverting to values instead of labels for ACF fields (and I’m making no changes whatsover to the options for the search in the admin panel). My only (uninformed) guess is that when a new entry is made to a post on which the filter will act (or an existing post is changed) the cache update is not the same as a full cache rebuild and somewhere along the way the plugin forgets that it needs to display the ACF choice labels instead of values. All of which is especially an issue for multi-lingual websites.

    On an unrelated note, I want to buy the single site licence for another site but cannot work out how I can do that through your menu. I only have an option to upgrade/purchase the developer version. Can you please advise.

    Thanks,
    Ross

    Trevor
    #75914
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 total)