Using [Chronoforms5] in template

Hey, hope you're all fine, I'd like to use Chronoforms, do you know how I can insert it in my page contact.php To use it, you've to insert this:

[Chronoforms5 chronoform="FormulaireDeContact"]

by the way I'll will also use this:

add_action( 'phpmailer_init', 'wpse8170_phpmailer_init' );
function wpse8170_phpmailer_init( PHPMailer $phpmailer ) {
    $phpmailer->Host = '';
    $phpmailer->Port = 25; // could be different
    $phpmailer->Username = ''; // if required
    $phpmailer->Password = 'yourpassword'; // if required
    $phpmailer->SMTPAuth = true; // if required
    // $phpmailer->SMTPSecure = 'ssl'; // enable if required, 'tls' is another possible value


Hey Olivier, is [Chronoforms5] a shortcode which currently works when you use it in WordPress admin editor?

Hey Thierry, yes it is, i put: [Chronoforms5 chronoform="FormulaireDeContact"] in a default page side texte in the text editor and it run.

Great, then you should be able to add following PHP in your contact.php:

echo do_shortcode( '[Chronoforms5 chronoform="FormulaireDeContact"] );

Have fun,

Hey Mister, top class, thank you for your time.

Write a reply

Login or register to write a reply, it's free!