projects
/
WP-Themes
/
petoskeyarea.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af902ad
)
using filter to force post content in landing page template to adhere to the_content...
author
Anthony Talarico
<talarico@gaslightmedia.com>
Wed, 31 Aug 2016 14:54:41 +0000
(10:54 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Wed, 31 Aug 2016 14:54:41 +0000
(10:54 -0400)
landing-page.php
patch
|
blob
|
history
diff --git
a/landing-page.php
b/landing-page.php
index
361201b
..
5c35396
100644
(file)
--- a/
landing-page.php
+++ b/
landing-page.php
@@
-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(); ?>