[Theme: Twenty Fourteen] The_Content not showing in custom post page
-
I’m building a custom post template–single-lesson.php.
This code seems to work ok, except that the content does not display–my Shareaholic buttons, which are located inside the content DO display, which is weird!
<?php get_header(); ?> <div id="primary" class="content-area"> <div id="content" class="site-content" role="main"> <?php twentyfourteen_post_thumbnail(); ?> <div class="entry-meta"> <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> </div> <div id="lessonplantitle"> <?php the_title( '<h1 class="entry-title">', '</h1>' );?> </div><!--lessonplantitle--> <div id="lessonplantaxonomies"> <?php echo get_the_term_list( $post->ID, 'level', 'Level: ', ', ', '<br>' ); echo get_the_term_list( $post->ID, 'skill', 'Skill: ', ', ', '<br>' ); echo get_the_term_list( $post->ID, 'area', 'Area: ', ', ', '<br>' ); echo get_the_term_list( $post->ID, 'time', 'Time: ', ', ', '<br>' ); echo get_the_term_list( $post->ID, 'theme', 'Theme: ', ', ', '<br>' ); ?> </div><!--lessonplantaxonomies--> <div id="lessonplanintroduction"> <h2>Introduction</h2> <?php the_field('introduction') ?> </div><!--lessonplanintroduction--> <div id="lessonplancontent"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); ?> </div><!--lessonplancontent--> <div id="lessonplanextension"> <?php if(get_field('extension')) {;?> <h3>Extension</h3> <?php get_field('extension'); }?> </div><!--lessonplanextension--> twentyfourteen_post_nav(); if ( comments_open() || get_comments_number() ) { comments_template(); } endwhile; ?> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar( 'content' ); get_sidebar(); get_footer(); <A href="https://www.englishadvantage.info/testblog/lesson/parallel-structure/">Link to the page</a>
- The topic ‘[Theme: Twenty Fourteen] The_Content not showing in custom post page’ is closed to new replies.