changing template back to full width since get_post content executes shortcodes in...
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 21 Sep 2016 19:42:04 +0000 (15:42 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 21 Sep 2016 19:42:04 +0000 (15:42 -0400)
functions.php
sections/interior-page.php

index caee3db..4b69bd3 100644 (file)
@@ -212,7 +212,7 @@ add_filter( 'custom_page_templates', function( $now_templates ) {
     // Below are some commented examples of custom quasi-templates.
     $templates = array(
        'page-chamber'       => 'Chamber Page',
-        'events-list'        => 'Events List'
+        'full-width'        => 'Full Width'
     //    'any-template-slug' => 'Sample Template' ,
     );
 
index 4075d71..bdfc531 100644 (file)
@@ -4,6 +4,7 @@
         <div id="page-title" class="text-center">
             <h1><?php the_title() ;?></h1>
         </div>
+         <?php $post_content = get_post($post->ID); ?>
           <div class="row column">
               <?php if (get_page_template_slug( $post->ID ) == "page-chamber") { ?>
                    
                             <?php get_template_part('parts/chamber-sidebar-left'); ?>
                          </div>    
                         
-                <?php } else if(get_page_template_slug( $post->ID ) == "events-list") { ?>  
-                     <div id="events-list" class="small-12 columns">
-                            <?php echo do_shortcode("[glm-members-event-list]"); ?>
+                <?php } else if(get_page_template_slug( $post->ID ) == "full-width") { ?>  
+                    <?php $index_template = false; ?>
+                     <div id="full-width" class="small-12 columns">
+                        <?php echo apply_filters('the_content', $post_content->post_content) ; ?>
                      </div>
                 <!-- check for chamber page template -->
                 <?php } else { ?>