Viewing 2 replies - 1 through 2 (of 2 total)
  • If your template is using “get_sub_field(‘some_label_for_link_content’)”, the value for this is an array. To get the link, you can output like so:

    <?php
    $link_array = get_sub_field('fieldname_for_your_link_content');
    echo array_values($link_array)[0]; // URL
    ?>

    sorry, i am a nub.

    I have the same Error… where do i have to put the php code provided?

    thx

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Returns "Array"’ is closed to new replies.