<?php
/*
 * Template Name: Contact Page
 * Description: Simple contact page template that outputs page content and a Contact Form 7 shortcode.
 */

defined( 'ABSPATH' ) || exit;

get_header();
?>

<main id="site-content" role="main">
    <?php
    while ( have_posts() ) : the_post();
        the_title( '<h1 class="entry-title">', '</h1>' );
        the_content();
    endwhile;

    /*
     * Contact Form 7 shortcode example. Replace the id/title with your form's values from the WP admin.
     * If Contact Form 7 is not installed, this will output nothing. To install: Plugins → Add New → search "Contact Form 7".
     */
    echo do_shortcode( '[contact-form-7 id="123" title="Contact form 1"]' );
    ?>
</main>

<?php
get_footer();
