Hi, thanks for the reply. I don’t think what you’re describing is the issue so I’ve taken a few screenshots to try to illustrate what I’m seeing.
This is the field as seen in the editor with version 0.8.8.9 – https://drive.google.com/file/d/1yoifpOINkL2igB3mjmITa73Ytq3HCyRM/view?usp=sharing
And this is what’s shown in the Developer mode for this field – https://drive.google.com/file/d/1ytH9jw7_1qk-wbSKOYfBCiipUCEnb78Q/view?usp=sharing
Outputting get_sub_field(‘cta_button’) results in this:
Array ( [title] => Download the report [url] => https://<domain>/about-us/resources/ibm-cost-of-a-data-breach-report-2024/ [target] => 0 )
If I then update ACF Extended to the latest version 0.9.0.7 and don’t do anything else except refresh the edit page, then the field looks like this – https://drive.google.com/file/d/1yqy9u5B4R6LiMdoOv2y_s6ssFwgQRK1z/view?usp=sharing
Developer mode looks like this (unchanged from before)- https://drive.google.com/file/d/1ykrtVSmUVhYJpCmAjwGvXfj6u7EeF4gD/view?usp=sharing
Outputting get_sub_field(‘cta_button’) results in this:
Array ( [type] => url [value] => 8 [url] => 8 [name] => 8 [title] => Download the report [target] => )
Obviously the URL field isn’t populated so the link doesn’t display on the front end.
In this case it’s not pointing to a particular post ID, it’s just pointing to a URL so it’s not a case of the Post ID not existing. Note that there are other links on the same page which are pointing to posts but it’s the same issue – the array isn’t populated correctly. For example, here are two outputs from get_sub_field() on the old version-
Array ( [title] => Read the case study [url] => https://<domain>/about-us/case-studies/maidstone-tunbridge-wells-nhs-trust-power-bi/ [target] => 0 )
Array ( [title] => Download our PDF [url] => https://<domain>/wp-content/uploads/2020/01/Northdoor_DWWP_210112.pdf [target] => 0 )
And here they are after the plugin has been updated and the page refreshed (note that nothing has been changed on the page and it hasn’t been saved again – it’s just a plugin update) –
Array ( [type] => url [value] => 8 [url] => 8 [name] => 8 [title] => Read the case study [target] => )
Array ( [type] => url [value] => 8 [url] => 8 [name] => 8 [title] => Download our PDF [target] => )
I hope this helps. Apologies if I’ve misunderstood anything. It’s worth noting that this is an Advanced Link within a repeater which is within a flexible content field, so perhaps that adds a bit of complexity.
Thanks, Gregor