Dynamically render a Fluent Form on the frontend using form ID & ACF.
How to use:
Create a number field which you will put the ID of the form in. Then add a shortcode and pass the field name into the shortcode
[dynamic_fluentform field="form_id"]
(My ACF field was called form_id
)
function tct_dynamic_fluentform($atts){ $id = get_field($atts['field']); echo do_shortcode(''); } add_shortcode( 'dynamic_fluentform', 'tct_dynamic_fluentform' );
Copy
Original Question: https://www.facebook.com/groups/fluentforms/posts/1040580730084209/
Resources:
https://developer.wordpress.org/reference/functions/do_shortcode/
https://developer.wordpress.org/reference/functions/add_shortcode/