Support

Account

Home Forums General Issues Page Link field content in a function Reply To: Page Link field content in a function

  • 
    $link = get_field('your_link_field_name');
    if ($link) {
      echo '<a href="'.$link['url'].'"><span>'.$link['title'].'</span></a>';
    }
    

    https://www.advancedcustomfields.com/resources/link/