Problem displaying Posts on Blog Page
-
I’m working on a website for a client, and I can’t get the posts to show up. The rest of the site is working well, but the Blog page is not.
I’m using the Underscores Starter Theme with WordPress 3.9.1.
The code for the Blog page is as follows:
<?php /* Template Name: newsArchiveTemplate */ /** * Beekman custom page template file. * * This is the custom page template file, called newsArchiveTemplate. * Beekman will be able to select this file from the Add Page drop down menu. */ get_header(); ?> <?php include("leftSidebar.php"); ?> <?php get_sidebar(); ?> <div id="primary" class="content-area" style="width:300px; position:relative; left:300px; top:-1380px; margin-left:20px; float:left;"> <main id="main" class="site-main" role="main"> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php /* Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> <?php beekmantheme_paging_nav(); ?> </main><!-- #main --> </div><!-- #primary --> <!--<?php get_sidebar(); ?>--> <?php get_footer(); ?>
I’ve been doing a lot of moving around of code, and may very well have deleted an important line.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Problem displaying Posts on Blog Page’ is closed to new replies.