the answer for all question about Oxygen Builder plugin and WordPress

Hi there. Is it possible to have an ACF options page which has a field set to em

Hi there. Is it possible to have an ACF options page which has a field set to email and then use it within an Oxygen template in some way so that the end user can click it and send an email?
I know about using a PHP return function to get normal text items and other items but can only get the email value returned but don’t know how to get the mailto part surrounding it?
Again this is an ACF Options page field and not something stored in a post.
Many thanks for any help with this.



Source

3 Comments
  1. Burt Gordon says

    Yes get_field( “acf_field_name”, “option”);

  2. Matt Hias says

    Samples to be used in a Code Block

    ‘ . $mail_address .’‘;
    ?>

    Or

    %1$s‘, $mail_address);
    ?>

    Or if you want to avoid bots to scan your website for mail addresses:

    %1$s‘, antispambot($mail_address) );
    ?>

  3. Esta Schoeman says

    I have done something similar to create mega menu items for the different categories.

Leave A Reply

Your email address will not be published.

Oxyrealm Docs