Custom column content added to contact page
authorLaury GvR <laury@gaslightmedia.com>
Wed, 30 May 2018 20:03:02 +0000 (16:03 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 30 May 2018 20:03:02 +0000 (16:03 -0400)
members-only-template.php [deleted file]
parts/main-content.php

diff --git a/members-only-template.php b/members-only-template.php
deleted file mode 100644 (file)
index 8c7c933..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-/*
-Template Name: GLM Members Only Template
-*/
-get_template_part('index');
-?>
\ No newline at end of file
index 5a9ccd0..bf90338 100644 (file)
@@ -1,7 +1,20 @@
             <div id="main-content" class="small-12 columns">
+            <?php 
+            // On the contact page, show the custom column content instead
+            if (is_page(100)) { ?>
+                <div class="row">
+                    <div class="small-12 medium-4 columns">
+                        <?php the_field('c1_content' ); ?>
+                    </div>
+                    <div class="small-12 medium-8 columns">
+                        <?php the_field('c2_content' ); ?>
+                    </div>
+                </div>
+            <?php } else { ?>
                 <?php if(have_posts()) : while(have_posts()): the_post();?>
                 <?php the_content();?>
                 <?php endwhile; else:?>
                 <p><?php _e('Sorry, no posts yet');?></p>
                 <?php endif;?>
+            <?php } ?>
             </div>
\ No newline at end of file