Blog posts not displaying

on my WordPress site on the first page I always get my posts displaying however when I navigate to my ‘Blog’ page with my blog template attached to it I cant get my posts to display here.

I used a wordpress function to echo out the current page template on the first page and it is getting the index.php template. My blog page is getting the blog template. I have copied and pasted the code

Read More
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>

<?php the_content(); ?>

<p><?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?> | <?php the_category(', '); ?> | <?php comments_number('No comment', '1 comment', '% comments'); ?></p>

<?php comments_template(); // Get wp-comments.php template ?> 

<?php endwhile; else: ?>

<h2>Woops...</h2>

<p>Sorry, no posts we're found.</p>

<?php endif; ?>

<p align="center"><?php posts_nav_link(); ?></p>

</div>

But i only get the form for posting comments. Any ideas what I may be doing wrong I would have thought it blog.php had the same code as index.php they would look identical..

Thanks

Related posts

Leave a Reply

1 comment