I have an issue with home.php on a WordPress theme I'm developing.
I'm trying to make a page that displays the latest posts. I've ascertained that this is called 'home.php.'
I'm following a tutorial that includes a template for home.php. The problem is, the home.php isn't being read. Instead, it seems that the browser is showing index.php in place of home.php. I know it's not posting anything from home.php because because if I delete all the code from the home.php and save it as a blank document, it has zero effect on what the browser displays.
Here's the PHP/HTML I'm using:
<?php get_header(); ?>
<div class="row">
<div class="span8">
<h1>News</h1>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p><em><?php the_time('l, F jS, Y'); ?></em></p>
<hr>
<?php endwhile; else: ?>
<p><?php _e('Sorry, there are no posts.'); ?></p>
<?php endif; ?>
</div>
<div class="span4">
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>