Hi,
I have flexible_content named “Block” and inside flexible_content I have field named “Block title”, how can I use value from “Block title” and append that value to “Block” title, I’m using fields from php file
I’ve tried this without any success
$field = get_field_object('field_55f40ea5ea5d7');
$block_title = $field['value'];
'layouts' => array (
array (
'key' => '5532d11ce4dba',
'name' => 'posts_picker',
'label' => 'Block' . $block_title,
'display' => 'block',
'sub_fields' => array (
array (
'key' => 'field_55f40ea5ea5d7',
'label' => 'Block title',
'name' => 'block_title',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => 50,
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),...
any ideas?