My blog posts appear in the blog section, but not on the homepage. How can I make my blog posts appear on the homepage?
One way is to modify the file: front-page.php in your child theme's folder and include this:
<!-- loop through the posts --> <?php while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-content"> <?php the_content(); ?> <!-- post content --> </div><!-- .entry-content --> </article><!-- #post-## --> <?php endwhile; // end of the loop. ?>
What the above snippet will do is go through every post on your site and include a very simple name, post type, and the actual post itself all within an tag for each post.
You probably should place this snippet within the with the ID "main", but you can put it anywhere you want -- on any page (not just the front)