using filter to force post content in landing page template to adhere to the_content...
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 31 Aug 2016 14:54:41 +0000 (10:54 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 31 Aug 2016 14:54:41 +0000 (10:54 -0400)
landing-page.php

index 361201b..5c35396 100644 (file)
@@ -37,7 +37,7 @@ Template Name: Landing Page
                             </div>
                         </div>
                         <?php $page_object = get_page( $post->ID ); ?>
-                        <?php echo '<div class="custom-content">' . $page_object->post_content . '</div>'; ?>
+                        <?php echo '<div class="custom-content">' . apply_filters('the_content', $page_object->post_content) . '</div>'; ?>
                  <div class="row">
                    <?php if ( $parent->have_posts() ) : ?>
                      <?php while ( $parent->have_posts() ) : $parent->the_post(); ?>