Support

Account

Home Forums Add-ons Repeater Field Repeater Field show link or plain text Reply To: Repeater Field show link or plain text

  • get the url and see if it has a value

    
    <li>
      <?php 
        $text = get_sub_field('list_item');
        $url = get_subfield('item_url');
        if ($url) {
          $text = '<a href="'.$url.'" target="_blank">'.$text.'</a>';
        }
        echo $text;
      ?>
    </li>