我在single.php中获得了所有帖子,而不是获得独特的帖子

I meet for the first time this problem without knowing that who is a problem

I have a custom template mine, I have created the single.php file to pull the single post.

code:

<?php get_header(); ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php single_post_title(); ?>
    <?php the_content(); ?>
    <?php endwhile; // end of the loop. ?>
<?php get_footer(); ?>

When I go to an article that puts extra posts, how happens this;

Let me note here that if I put eg in theme twentyfifteen, normally works..

I would be very grateful to find a solution!

You are looping through all the posts, and displaying the title and content of each of them, before you end the loop and get the footer.