the_content not displaying
-
I’m hoping someone can help here. I’ve got a template for my homepage and for some reason, when I add a custom code snippet the get_content hook does not work. Can someone tell me what I’m doing wrong semantically? Here is the code:
<?php<br /> /**<br /> * Template Name: Home Page Template<br /> *<br /> * A custom page template without sidebar.<br /> *<br /> * The "Template Name:" bit above allows this to be selectable<br /> * from a dropdown menu on the edit page screen.<br /> *<br /> * @package WordPress<br /> * @subpackage purepress<br /> * @since purepress 1.0<br /> */</p> <p>get_header();</p> <p> $slider_on = ot_get_option( 'slider_on' );<br /> $slider_type = ot_get_option( 'incr_slider_home' );</p> <p> if ($slider_type == "flex") {<br /> $slides = ot_get_option( 'mainslider', array() );<br /> if ( $slider_on == 'yes' && !empty( $slides )) {<br /> get_template_part('slider');<br /> }<br /> } </p> <p> if ($slider_type == "revolution") {<br /> if ( $slider_on == 'yes') {<br /> putRevSlider(ot_get_option( 'incr_revo_slider' ));<br /> }</p> <p> }</p> <p> while (have_posts()) : the_post(); ?><br /> <!-- 960 Container --><br /> <div class="container" style="margin-top: 20px;"><br /> <h2></h2><br /> <p></p><br /> <div class="sixteen columns"><br /> <h4 class="headline"></h4><br /> </div><br /> <?php<br /> $args=array(<br /> 'orderby' =>'parent',<br /> 'order' =>'asc',<br /> 'post_type' =>'page',<br /> 'post__in' => array(28,26,175,34),<br /> );<br /> $page_query = new WP_Query($args); ?></p> <p><?php while ($page_query->have_posts()) : $page_query->the_post(); ?><br /> <div class="four columns"><br /> <div class="item-img"><br /> <?php the_post_thumbnail(); ?><br /> </div><br /> <div class="portfolio-item-meta"><br /> <h5><a>"><?php the_title();?></a></h5><br /> <?php the_excerpt(); ?></p> <p><a>">Learn More</a></p> <p></div><br /> </div></p> <p><?php endwhile; ?></p> <p> <div <?php post_class('post home'); ?> id="post-<?php the_ID(); ?>" ><br /> <?php the_content() ?><br /> </div><br /> <!-- Post --><br /> <?php endwhile; // End the loop. Whew. ?></p> <p><?php get_footer(); ?><br />
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘the_content not displaying’ is closed to new replies.