I created a page for my posts, and a home.php for the structure.
I would like to show the page's name on the top of the posts, but the result is always the latest post.
My code:
<?php get_header(); ?>
<section id="primary-content" class="col-md-9">
<?php the_title(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post">
<h2><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
<div class="byline">by <?php the_author_posts_link(); ?> on <a href="<?php the_permalink(); ?>"><?php the_time( 'l F d, Y'); ?></a></div>
<?php the_content('Read More...'); ?>
</div>
<?php endwhile; else: ?>
<p><?php _e('No posts were found. Sorry!'); ?></p>
<?php endif; ?>
<div class="navi">
<div class="right">
 <?php previous_posts_link('Previous'); ?> / <?php
next_posts_link('Next'); ?>
</div>
</div>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Where's the problem? Is it possible to show the page's name on the blog page?