Title: Does not work, returns the word &#8220;Array&#8221;
Last modified: March 6, 2017

---

# Does not work, returns the word “Array”

 *  Resolved [The-Dude](https://wordpress.org/support/users/the-dude-1/)
 * (@the-dude-1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/does-not-work-returns-the-word-array/)
 * Hi Corey,
 * first, thanks für coding this very usefull ACF-Option! I realy need it!
    Unfortunatly
   it doesn’t work.
 * Instead of displaying the linked Link-Text, i see only the word “Array”.
 * Could you please help me? 🙂
 * Big Thx!

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

 *  Plugin Author [Corey Worrell](https://wordpress.org/support/users/coreyw/)
 * (@coreyw)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/does-not-work-returns-the-word-array/#post-8881036)
 * [@the-dude-1](https://wordpress.org/support/users/the-dude-1/), thank you for
   downloading.
 * The link field actually returns an array value, not a single string value.
 *     ```
       array(
           [url]    => http://site.com/page/
           [title]  => Page!
           [target] => 0
       )
       ```
   
 * So you can get the value you need by using something like this:
 *     ```
       $link = get_field('my_link');
       echo sprintf('<a href="%s">%s</a>', $link['url'], $link['title']);
       ```
   
 *  Thread Starter [The-Dude](https://wordpress.org/support/users/the-dude-1/)
 * (@the-dude-1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/does-not-work-returns-the-word-array/#post-8881552)
 * Hi Corey,
 * thanks for the hint, but where should i integrate the code? Should i change your
   plugin-code?
 * And why does it not work out of the box, like i assumed? I thought, i enter Link
   and Link text in the ACF-backend, and see the linked text at the front end.
 * Cheers 🙂
    -  This reply was modified 9 years, 3 months ago by [The-Dude](https://wordpress.org/support/users/the-dude-1/).
 *  Plugin Author [Corey Worrell](https://wordpress.org/support/users/coreyw/)
 * (@coreyw)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/does-not-work-returns-the-word-array/#post-8881561)
 * [@the-dude-1](https://wordpress.org/support/users/the-dude-1/),
 * It does work out of the box, just not the way you are expecting. The code above
   can be placed in your theme template file, or anywhere you are trying to display
   the value.
 * ACF uses the function `get_field` to display a value: [https://www.advancedcustomfields.com/resources/code-examples/](https://www.advancedcustomfields.com/resources/code-examples/)
 * The Link field behaves just the same as an Image or File field would, they all
   return an array from the `get_field` function. [https://www.advancedcustomfields.com/resources/file/](https://www.advancedcustomfields.com/resources/file/)
 *  Thread Starter [The-Dude](https://wordpress.org/support/users/the-dude-1/)
 * (@the-dude-1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/does-not-work-returns-the-word-array/#post-8881592)
 * Ah, ok. That’s not what i want. Perhaps it implement it into the theme, all the
   work and information is gone with next theme update.
 * I thought it behaves and i can use it like the other ACF fields: Define it in
   a field group, fill in the information in the backend and see the result in the
   front end. No coding.
    -  This reply was modified 9 years, 3 months ago by [The-Dude](https://wordpress.org/support/users/the-dude-1/).
 *  Plugin Author [Corey Worrell](https://wordpress.org/support/users/coreyw/)
 * (@coreyw)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/does-not-work-returns-the-word-array/#post-8881607)
 * [@the-dude-1](https://wordpress.org/support/users/the-dude-1/),
 * That is how it works, but your theme must support it. And to make changes to 
   a theme without updates overwriting them, you must create/use a child theme.
 * If you are using a commercial theme, I would contact them regarding the issue
   to see if they can add support for this ACF field type.
 *  Thread Starter [The-Dude](https://wordpress.org/support/users/the-dude-1/)
 * (@the-dude-1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/does-not-work-returns-the-word-array/#post-8881625)
 * Thanks for this important hint. Yes, i’m using a commercial theme (and a child
   them of course ;)) that comes with ACF. Ok, then i talk to the theme developers.
   🙂
 *  Plugin Author [Corey Worrell](https://wordpress.org/support/users/coreyw/)
 * (@coreyw)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/does-not-work-returns-the-word-array/#post-8881640)
 * You’re welcome! Hope they can help you get it figured out.

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

The topic ‘Does not work, returns the word “Array”’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/acf-link_f7921e.svg)
 * [Advanced Custom Fields: Link](https://wordpress.org/plugins/acf-link/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-link/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-link/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-link/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-link/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-link/reviews/)

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)
 * [anchor](https://wordpress.org/support/topic-tag/anchor/)
 * [array](https://wordpress.org/support/topic-tag/array/)
 * [display](https://wordpress.org/support/topic-tag/display/)
 * [link](https://wordpress.org/support/topic-tag/link/)
 * [text](https://wordpress.org/support/topic-tag/text/)

 * 7 replies
 * 2 participants
 * Last reply from: [Corey Worrell](https://wordpress.org/support/users/coreyw/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/does-not-work-returns-the-word-array/#post-8881640)
 * Status: resolved