Home Forums Backend Issues (wp-admin) Passing URL to Link


Passing URL to Link

  • Hi,

    I have made a custom field in ACF as URL parameter.

    I want to use that custom field URL as a Link in PHP

    I am not able to pass the URL. Can anyone please tell me how to do it.

    Right now it is taking the Industry page permalink as $link is passing URL of the permanlink. Want to change that with URL which I have made in ACF.

    $link = get_field('your-field-name');
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.