Home Forums ACF PRO Url and Email field Reply To: Url and Email field

  • Just in case anyone is interested in this – I managed to hack together a solution.

    I added the following code to the Divi functions.php file to create a simple shortcode. You then just add the shortcode [contact_email] into the code block in Divi:

    add_action('init', function(){
        add_shortcode('contact_email', function(){
            return '<a href="mailto:' . get_field('contact_email') . '">E-Mail</a>';