WordPress.org

Ready to get started?Download WordPress

Forums

Blog posts are not showing in the posts page (1 post)

  1. TalisCollection
    Member
    Posted 1 year ago #

    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.]

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by TalisCollection
  • This topic is not resolved
  • WordPress version: 3.5.1