Support

Account

Home Forums General Issues Use selected checkbox values in a URL Reply To: Use selected checkbox values in a URL

  • Hi Elliot,

    Brilliant! Thank you for your help on this, works a treat!

    Although, I had to wrap the second $value (that displays the text for the link) in the single quotes and full stops to get it to render the text correctly:

    <?php
        $values = get_field('regions-listed-in');
        if($values)
            {
                foreach($values as $value)
                    {
                     echo ' <a href="http://test/inhouse1/explore/' . $value . '">' . $value . '</a>';
                     }
             }
    ?>