Quantcast
Channel: contact form 7 – WordPress.org Forums
Viewing all articles
Browse latest Browse all 9540

grafmik on "Include Contact Form 7 FIELDS into a php template included within form"

$
0
0

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?

https://wordpress.org/plugins/contact-form-7/


Viewing all articles
Browse latest Browse all 9540

Trending Articles