Home › Forums › Add-ons › Flexible Content Field › Is it possible to load all layouts on default? › Reply To: Is it possible to load all layouts on default?
Hi @asitis
I would find the field_key and use that in the filter. You can find the field_key by editing your field group, clicking on the screen options tab, and toggle the option to show field keys.
This will then allow to you run the filter on and only on that field.
Next, remove the filter code and edit a post that contains the field.
Enter all ther default data you wish to appear.
Save the post.
Now add back in your filter code and simple dump out the value like so:
<?php
echo '<pre>';
print_r( $value );
echo '</pre>';
die;
?>
Now you can see how the $value needs to look.
You can now copy this data, and use it in your filter to override the $value.
Does that help?
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’re working hard on Advanced Custom Fields PRO 6.0, and Beta 1 is now available 🚀
— Advanced Custom Fields (@wp_acf) August 12, 2022
Featuring improved performance for Repeater fields with large datasets, and a new generation of ACF Blocks.
Let’s take a look 🧵https://t.co/Befre3kFAo
© 2022 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.