How to create an external link from repeater field ACF

Hi there,

I’ve created some custom fields for custom posts that I’m inserting into a Pro template through shortcodes. I have a repeater field that I want my client to be able to add a variable number of links to collaborators’ websites. The repeater has two sub fields, one being a text field where they insert the name of the company and then the second is the URL of the company. How can I create a shortcode to apply the link to the display name and display the hyperlinked text?

Thanks for your help!

Hi @felicityevans,

Please take a look at this artilce:

Hope it helps :slight_smile:

Thanks for this link, it works, but now I’ve got an error when I try to use pro content editor:

The preview could not load due to the iframe response being incomplete. This is most often related to a plugin conflict, or customizations introducing a PHP error.

Origin URL: http://dev.northernedgestudio.com.au

Preview URL: http://dev.northernedgestudio.com.au/hello-world/

When I remove the script from the functions.php the error stops.

Can you please help?

Hi @felicityevans,

How are you adding the shortcode in your page.
Can you try adding it in Classic raw element.

Would you mind providing us with login credentials so we can take a closer look? Please provide following information:

Set it as Secure Note

  • Link to your site
  • WordPress Admin username / password

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.