Switch sidebar upcoming events with latest post
authorLaury GvR <laury@gaslightmedia.com>
Tue, 5 Feb 2019 17:29:05 +0000 (12:29 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 5 Feb 2019 17:29:05 +0000 (12:29 -0500)
county-landing-template.1.php [new file with mode: 0644]
county-sub-template.php [new file with mode: 0644]
sidebar.php

diff --git a/county-landing-template.1.php b/county-landing-template.1.php
new file mode 100644 (file)
index 0000000..0a65909
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+/*
+Template Name: County Landing Page Template
+*/
+get_template_part('index');
\ No newline at end of file
diff --git a/county-sub-template.php b/county-sub-template.php
new file mode 100644 (file)
index 0000000..e13f53d
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+/*
+Template Name: County Sub Page Template
+*/
+get_template_part('index');
\ No newline at end of file
index 8b975e1..b22f54d 100644 (file)
             </div>
         <?php } ?>
 
+    <div id="sidebar-events">
+        <h2>Upcoming Events</h2>
+        <?php echo do_shortcode('[glm-members-event-list template="eventsFrontPageCity.html" limit="3"]'); ?>
+        <a href="<?php echo get_permalink(757); ?>" class="button view-all-events">View All Events</a>
+    </div>
+    
+    <br>
+
     <div id="sidebar-posts">
         <h2>Latest Post</h2>
         <?php query_posts( array(
         <?php endif; ?>
         <?php wp_reset_query(); ?>
     </div>
-    <br>
-
-    <div id="sidebar-events">
-        <h2>Upcoming Events</h2>
-        <?php echo do_shortcode('[glm-members-event-list template="eventsFrontPageCity.html" limit="3"]'); ?>
-        <a href="<?php echo get_permalink(757); ?>" class="button view-all-events">View All Events</a>
-    </div>
 </div>