Post Field Body Post format

I’m building a form that will create posts. Done that before, no big deal…BUT this time I want to specific a post format that users will pick. I made radio buttons for that. Now the part I’m not sure how to do is how do you change the post format on the post body field dynamically.

You can use the gform_post_data filter to set a post format:

You would use the set_post_format() function:

Awesome. Thank you.

Christophe Peyras
C. : (1) 206 877 2294
E. :

1 Like