Support

Account

Home Forums Front-end Issues do_shortcode filled with variable Reply To: do_shortcode filled with variable

  • what is the value of form_perso field?

    $formPerso = get_field('form_perso');
    echo '<pre>';
    echo htmlspecialchars(print_r($formPerso,true));
    echo '</pre>';

    why you didnt try out ACF CF7 Field Plugin?
    create a ACF CF7 Field with name selected_form and show it at frontend:

    <?php if( get_field('selected_form') ):
         the_field('selected_form');
    endif; ?>

    maybe this solve problem too:

    $formPerso = get_field('form_perso', false, false);
    do_shortcode($formPerso);