Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › get_value filter not updating
- This topic has 9 replies, 2 voices, and was last updated 7 years, 4 months ago by
Ernest Marcinko.
-
AuthorPosts
-
January 16, 2019 at 9:27 pm #20767
aspique
ParticipantHi,
I’ve a custom field filter: it’s a dropdown which value is {get_values}. The issue is that when we add new values into this custom field it does not appear in frontend dropdown: why this? Shouldn’t it be automatically?
I tried to re-generate index and empty all caches but still not possible to show the newly added values.Many thanks in advance for your help,
TiborJanuary 17, 2019 at 10:11 am #20779Ernest Marcinko
KeymasterHi Tibor,
I guess if you use any custom field API like ACF or maybe PODS or something else, it is possible, that the custom field values are not yet present in the post_meta database, until they have been used at least once in a post. They are requested directly from the database via a query.
The values can be cached as well, as they are printed as the page content itself. Once the page/object cache is cleared, they should show up.January 17, 2019 at 11:53 am #20791aspique
ParticipantHi,
Value is used for a post, so it is in the post_meta database. I cleared all possible caches but still it does not show up in dropdown.January 17, 2019 at 12:03 pm #20794Ernest Marcinko
KeymasterYou cannot access this content.
January 17, 2019 at 12:17 pm #20795aspique
ParticipantYou cannot access this content.
January 17, 2019 at 12:46 pm #20796Ernest Marcinko
KeymasterThank you very much!
Can you please also link me to a post which has a custom field, that is not within the list? I see there are a lot of values, but I don’t know which ones are missing. Thank you!
January 17, 2019 at 1:04 pm #20798aspique
ParticipantIt’s this post: https://lemessagerevangelique.ch/2018/ils-ont-perce-mes-mains-et-mes-pieds/ where post_meta custom field “auteur” = “Pages Guy”
January 17, 2019 at 1:33 pm #20800Ernest Marcinko
KeymasterThank you very much, I think I managed to find and correct the issue.
For some reason ACF was not returning all of the choices with a specific method. I had to make a direct change to the functions file in the ajax search pro core to try a different method. I believe now it contains all of them. Please let me know if any is missing.
If it’s okay, I will include this fix in the upcoming release.January 17, 2019 at 3:02 pm #20804aspique
ParticipantHi – Many thanks for this fix. Dropdown now shows “Pages Guy” so it seems to solve this specific issue.
January 17, 2019 at 3:24 pm #20807Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.