Wordpress plugins
Add Template for Contact Form 7

Add Template for Contact Form 7

Version : 1.0.3
Tested up to : 6.0
Number of download : 13
Author : matorel
Average rating : 0 / 5 on 0 votes 0 votes, 0 avg.rating

Screenshots

Add Template for Contact Form 7
Add Template for Contact Form 7
Add Template for Contact Form 7
Add Template for Contact Form 7

This plugin adds a template function to “Contact Form 7” using a template file. This is useful for theme developers to smoothly check the display of CF7 tags. Create an atcf7 directory in the theme folder and place the template file (.php) in that directory. You can use PHP, WordPress functions / objects, ACF functions (excluding some) in the template file. However, it is not possible to show / hide form tags and add / remove required mark(*) using PHP. Example [theme_path/atcf7/***.php] <?php if (!defined('ABSPATH')) { exit; } /* * Template Name: Distinguishing Name */ ?> <h2> <?php // Example of using WP function the_title(); ?> </h2> <table> <tbody> <tr> <th><label for="your-category" onclick="">Category</label></th> <td> <?php // Example of using get_field of ACF with checkbox $cats = "'".get_field("cat1")."'"; $cats .= " '".get_field("cat2")."'"; $cats .= " '".get_field("cat3")."'"; ?> [checkbox your-category id:your-category class:atcf7-form-radio-label exclusive use_label_element <?php echo $cats; ?>] </td> </tr> <tr> <th><label for="your-name" onclick="">Name</label></th> <td> [text* your-name id:your-name] </td> </tr> <tr> <th><label for="your-email" onclick="">Mail Address</label></th> <td> <div> [email* your-email id:your-email ] </div> </td> </tr> <tr> <th><label for="your-content" onclick="">Contents</label></th> <td> [textarea* your-content x5 id:your-content ] </td> </tr> </tbody> </table> <div>[submit "Submit"]</div> For the theme developer to make the confirmation smooth, create the atcf7 directory in the theme folder and place the template file (.php) in that directory. Arbitrary section 1

Download now