- This topic has 2 replies, 2 voices, and was last updated 5 years, 12 months ago by .
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Search&Filter Pro with ACF : value not showing
Tagged: acf
Hello
I am using Search&Filter Pro with ACF.
I have some Custom Fields that i have loaded with WP-CLI scripts. The terms loaded this way are not showing on the Search form at first. I need to make a change and save the post on the BackOffice of WordPress in order to make it appear. I have 2000 posts to update, is there a way to force Search&Filter to look at thoses terms with a script ?
Thank you
In the script that you use, you need it to be written in such a way as it loops through one post at a time, and as the individual post loop ends, it saves the data. At this point you need to retrieve the Post ID, and then use this action:
This will trigger the same action in our plugin as though you had pressed the Update post button in the editor.
The problem is arising because the script you are using is probably not using the WordPress save_post() function.
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.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy