php - Wordpress single post not showing content -


my single-posts pages not displaying content. have restored original single.php theme nothing changed.

contents of single.php http://pastebin.com/ri6c96ax random post page http://www.crossfitawac.com/onramp-6/

these posts auto-published wodify. i've setup blog-grid page in wod section showing contents of each post, if want see single post website/blog page, contents not showing.

looks you've got few issues in single.php file. remove do_shortcode() title- using shortcodes outside of content editor. instead page title displayed using:

 <?php the_title(); ?> 

inside while loops, it's looking separate content template file. i'd recommend starting , after working consider moving it's own template.

<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_id(); ?>" <?php post_class(); ?>>      <h1 class="entry-title"><?php the_title(); ?></h1>      <div class="entry-content">         <?php the_content(); ?>     </div> </article> <?php endwhile; ?> 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -