• Resolved dchime

    (@dchime)


    Hello,

    It could be possible to add the value of a post custom field as a field in the form.
    I’m thinking in somethink like that:

    template-xxx.php
    --------------------
    $my_field = get_the_field('the_field');
    <?php echo do_shortcode( '[contact-form-7 id="7528" my_field=$myfield ); ?>

    If not, is there any workaround to have this?
    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 ‘Add custom field in shortcode’ is closed to new replies.