[Resolved] Posts not appearing on the homepage
I am using the Twenty Fourteen theme. I just setup the blog and any posts I create do not appear in the main content section of the homepage, it gives the message “Nothing Found. Ready to publish your first post?”
I have two test posts there and if I feature them, they show up on the homepage in the featured section, but not in the main section below. They also show up in recent posts.
It is not a caching issue, as I completely cleared my cache and also used a different browser I’d never used before.
I have no plug-ins currently active (and I tried deleting the inactive ones).
If I make the posts sticky, they still do not appear on the homepage.
If I switch to a different theme, then the posts do appear on the homepage.
It seems in index.php, have_posts() is returning false. Here’s the area in my index.php file, there is nothing with query_posts (as I have seen in other support topics).
<div id="primary" class="content-area"> <div id="content" class="site-content" role="main"> <?php if ( have_posts() ) : // Start the Loop. while ( have_posts() ) : the_post(); /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() ); endwhile; // Previous/next post navigation. twentyfourteen_paging_nav(); else : // If no content, include the "No posts found" template. get_template_part( 'content', 'none' ); endif; ?> </div><!-- #content -->
- The topic ‘[Resolved] Posts not appearing on the homepage’ is closed to new replies.