Home Forums ACF PRO Page Link Field with Custom Link Option


Page Link Field with Custom Link Option

  • Hi,

    Is there a way to ask the user to select a page link in the first instance, then for them to have the option of using a custom or external URL if none of the local links suffice?

    I’m generating a carousel, and would like to try and get this behaviour, as not all links are internal.


  • The only way to accomplish what you want to do with ACF is to create a radio field that lets the user select the type of link, for example internal or external and then to have a page link or URL field that are both conditional base on the radio field.

    Then where you’re getting values on the front end you check the radio field and then get and display the value for the link from the right field.

    The other choice is to give them a text field that they can enter whatever they want into it. but the first option also allows you to set up if the link should be opened in a new tab.

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

The topic ‘Page Link Field with Custom Link Option’ is closed to new replies.