Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › get_value filter not updating
This topic contains 9 replies, has 2 voices, and was last updated by Ernest Marcinko 4 years, 4 months ago.
- AuthorPosts
- January 16, 2019 at 9:27 pm #20767
Hi,
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 #20779Hi 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.
Best,
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.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 17, 2019 at 11:53 am #20791Hi,
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 #20794You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 17, 2019 at 12:17 pm #20795You cannot access this content.January 17, 2019 at 12:46 pm #20796Thank 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!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 17, 2019 at 1:04 pm #20798It’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 #20800Thank 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.
Best,
If it’s okay, I will include this fix in the upcoming release.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 17, 2019 at 3:02 pm #20804Hi – 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 #20807You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.