php - Blog page showing same as homepage -


i'm trying have posts post on page(blog) , 'home' page display front page. both pages have own templates assigned them (home home, blog blog).

in reading settings, i've set front page home, posts page blog. when go url.com/blog, displays same template home page. i'm not sure why won't display 2 blog posts.

in home.php template, have following code, issue?

<!-- display featured images -->     <?php          $args = array('post_type'=> 'page');         query_posts( $args );     ?>  <!-- featured images -->     <div class="main-thumb left">         <?php              if ( have_posts() ) {                 while ( have_posts() ) {                     the_post();              ?>                 <li>                     <a href="<?php echo get_permalink(); ?>">                         <div class="tint">                             <div class="overlay caps">                                 <?php                                      echo(types_render_field("top-overlay", array("output"=>"html")));                                 ?>                                 <?php                                      echo(types_render_field("bottom-overlay", array("output"=>"html")));                                 ?>                             </div> <!-- end .overlay-->                              <?php the_post_thumbnail(); ?>                         </div> <!-- end .tint-->                     </a>                 </li>         <?php                 }              }          ?>     </div> <!-- end .main-thumb--> 

home.php used home page no matter according template hierarchy:

  1. wordpress first determines whether has static front page. if static front page has been set, wordpress loads page according page template hierarchy.

  2. if static front page has not been set, wordpress looks template file called home.php , uses generate requested page.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -