• Resolved eran_catom

    (@eran_catom)


    Hi,

    i have contact form in every page on the website, i need that every form will have other email target (each email address will come from each page with custom field), the shortcode will be on the theme itself (do_shortcode()).

    i know i can do it with multiple forms but the result may be tens of forms…i’m sure there is a better way.

    i’m trying to find out if there is a way to use only one form and add other email target (other than ‘wpcf7-mail-recipient’ field value) to the shortcode itself, for example,
    if we have: do_shortcode('[contact-form-7 id="some id" title="some title"]')
    so i need something like: do_shortcode('[contact-form-7 id="some id" title="some title" to="[email protected]"]').
    the email address will come from custom field with variable:
    do_shortcode('[contact-form-7 id="some id" title="some title" to="' . $EMail . '"]').

    is it possible? what is the best solution here?

    thanks

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘change email target in the shortcode itself’ is closed to new replies.