Support

Account

Home Forums Add-ons Repeater Field Get only the matching subfield value within the repeater element inside a code b Reply To: Get only the matching subfield value within the repeater element inside a code b

  • Hello! Thanks again! Sometimes the easy approach actually works.

    <?php 
            // vars
            $value = get_sub_field('what3words');
            $str2 = ltrim($value, '/');
    ?>
    
    <a href="https://w3w.co/<?php echo $str2; ?>">/// <?php echo $str2; ?></a>