Title: Returns &quot;Array&quot;
Last modified: August 22, 2016

---

# Returns "Array"

 *  [msandiej](https://wordpress.org/support/users/msandiej/)
 * (@msandiej)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/returns-array-1/)
 * When I try and use this, it works properly in the backend, but the site displays“
   Array” where the link should be. Any ideas on how to fix that?
 * [https://wordpress.org/plugins/advanced-custom-fields-link-picker-field/](https://wordpress.org/plugins/advanced-custom-fields-link-picker-field/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [harrylove](https://wordpress.org/support/users/harrylove/)
 * (@harrylove)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/returns-array-1/#post-5625585)
 * 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
       ?>
       ```
   
 *  [prool](https://wordpress.org/support/users/prool/)
 * (@prool)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/returns-array-1/#post-5625613)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-custom-fields-link-picker-
   field.svg)
 * [Advanced Custom Fields: Link Picker Field](https://wordpress.org/plugins/advanced-custom-fields-link-picker-field/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields-link-picker-field/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields-link-picker-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields-link-picker-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields-link-picker-field/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [prool](https://wordpress.org/support/users/prool/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/returns-array-1/#post-5625613)
 * Status: not resolved