Support

Account

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?