Include Contact Form 7 FIELDS into a php template included within form
-
Hello,
I’d like to externalize my form content into a separate php file. I already did this for js and css files in a custom plugin, and I’d like the form to be called with a shortcode pointing to an external php file in the same plugin.
I don’t know the syntax to include and manage FIELDS in my template.
I already know the php syntax for including the form itself
<?php echo do_shortcode( ‘[contact-form-7 id=”1234″ title=”Contact form 1″]’ ); ?>
but I don’t need that.I’d like something like
<?php echo do_shortcode( ‘[text myfield]‘ ); ?>But AFAIK it’s not really a shortcode, it’s more a CF7 specific syntax…
Any ideas?
- The topic ‘Include Contact Form 7 FIELDS into a php template included within form’ is closed to new replies.