ACF-CF7 is an add-on for the ACF (Advanced Custom Fields) Wordpress plugin that lets you assign one or more CF7 (Contact Form 7) contact forms to a post.
ACF-CF7 displays a simple drop down/multiple select form field in a custom meta box.
Setting up ACF-CF7
ACF-CF7 multiple select with forms disabled
Using ACF-CF7 with the flexible content field
-
Copy 'acf-cf7.php' to your theme: https://github.com/taylormsj/acf-cf7/blob/master/acf-cf7.php
-
Register the field:
if(function_exists ('register_field')){
register_field('acf_cf7_field', 'link-to-file/acf-cf7.php');
}
Single form: Returns a String containing the form's markup
Multiple forms: Returns an Array of Strings containging the form's markup
Version 1.0
Written by Taylor Mitchell-St.Joseph - taylor.mitchellstjoseph@gmail.com
Based on code written for Gravity Forms Field by Adam Pope