Shortcode in radio button choice labels?


this there a way to get shortcodes to work in labels for choices for radio buttons? I’m using the Text Block plugin to save me having to edit the same text in lots of places.
But when I enter the shortcode in a choice label, it shows as the shortcode rather than text it’s meant to replaced with when I preview the form.

Any ideas?

Shortcodes are not supported in radio button choices. You should be able to dynamically populate the choices from your data source using this method:

That method can be used for drop down or radio button fields.

I had a similar issue, I had to insert a shortcode within a shortcode. Drove me nuts, but I finally got it. I hope this helps you, or someone else:

Add a shortcode to add_shortcode in functions.php

1 Like

Thank you for sharing that.