ACF link field return format change

[ad_1]

I got an ACF group that I have registered via acf\_register\_block. This is an existing block on the site, so there is already data in these fields. One of the fields is a link type, which was originally set to return ‘URL’ as the return value.

However, when I tried to change it to ‘return\_format’ => ‘array’, the data won’t update. I’m assuming that this is because it’s already registered to return URL, and i would need to run some kind of loop to update all the metadata? Any help would be great. Thanks

`array(`

`’key’ => ‘left_side_link_link’,`

`’label’ => ‘Link ID/URL’,`

`’name’ => ‘left_side_link_link’,`

`’aria-label’ => ”,`

`’type’ => ‘link’,`

`’instructions’ => ”,`

`’required’ => 0,`

`’conditional_logic’ => array(`

`array(`

`array(`

`’field’ => ‘left_side_link_one’,`

`’operator’ => ‘==’,`

`’value’ => ‘link’,`

`),`

`),`

`),`

`’wrapper’ => array(`

`’width’ => ”,`

`’class’ => ”,`

`’id’ => ”,`

`),`

`’return_format’ => ‘array’,`

`),`

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer