Jeradin / acf-website-field

Advanced Custom Fields add-on for Website URLs, allows for website URL, title and a checkbox to open externally or internally
59 stars 14 forks source link

Return value array or link #12

Closed jmslbam closed 11 years ago

jmslbam commented 11 years ago

What would be nice is that you could select what kind of value you want to return just like at the image field.

A. complete link <a href="#">Title</a>

B. Array

array(
 'title' => 'title of the link',
 'url' = '' 'http://www.jaimemartinez.nl',
 'external' => false
);

Because at this moment I have hacked core to return an array :)

array(
 'link' => '<a href="#">Title</a>',
 'title' => 'title of the link',
 'url' = '' 'http://www.jaimemartinez.nl',
 'external' => false
);

Thanks for the plugin by the way!

Jeradin commented 11 years ago

I added an option to let you return an array value. Can you test it out from your end? also would you tell me if the auto updating is working on your site? I added that yesterday.

Cheers