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);
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.