Blog posts are not showing in the posts page
Hi, I was trying to post everything to my blog page by setting up a blog.php and creating a blog page with the blog template (blog.php). However, my blog page is showing the same contents as my home page is showing. I’ve already selected “my blog” as posts page and home page as the front page. Following is the codes I put in blog.php. Could anyone help me with the correction of my codes please? Your help is greatly appreciated!! I’ve spent so much time trying to get this problem fixed unfortunately I still can’t.
Website: http://www.talis.com.au (please refer to “My Blog”)
<? /* Template Name: Blog Template */ ?> <?php get_header(); ?> <section id="content"> <div class="container_12"> <div class="cont_col"> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> </div><!--#content--> <div class="grid_3 side_col_right"> <?php get_sidebar(); ?> </div> <div class="clear"></div> </div> </section> <?php get_footer(); ?>
[Please post code between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
- The topic ‘Blog posts are not showing in the posts page’ is closed to new replies.