Home › Forums › Front-end Issues › ACF Load Post – Flexible Content – Not showing up on front end until manual save › Reply To: ACF Load Post – Flexible Content – Not showing up on front end until manual save
To get the fields to load on the front end you need to use an acf/load_field filter without the field key and you need to set the priority low.
add_filter('acf/load_value', 'add_starting_flex', 1, 3);
Then you need to test for the correct field key inside of your filter
if ($field['key'] != 'field_5eb8736d02e62' || $value !== NULL) {
return $value;
}
The reason that it is not working for you is that the filter using the field key runs too late and the flex field has a value other then NULL
. The only way to bypass the built in ACF filter is by not specifying the field to filter.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.