Dynamic Fluent Form with ACF

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

html
[dynamic_fluentform field="form_id"]

(My ACF field was called form_id)

php
function tct_dynamic_fluentform($atts){ $id = get_field($atts['field']); echo do_shortcode(''); } add_shortcode( 'dynamic_fluentform', 'tct_dynamic_fluentform' );

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/

👋🏻 Weekly Tutorial Digest

I send out a weekly newsletter with links to new tutorials written in the last week, you can subscribe below.

🔒I won't send you spam, I promise