Title: Blog posts listing
Last modified: August 22, 2016

---

# Blog posts listing

 *  [Roland Yegorov](https://wordpress.org/support/users/rolandjeg/)
 * (@rolandjeg)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/blog-posts-listing/)
 * I want to list the blog posts as they are in the index.php page. I copy/pasted
   the code below but the page shows only that content which is written in the Pages/
   Blog _[name of the page]_ i.e. it does not correspond with the code I put in 
   the .php file.
 * Can someone help me? Thank you!
 *     ```
       <?php 
   
       while(have_posts()) : the_post(); ?>
   
       <?php if ( has_post_thumbnail() ) : ?>
       <a href="<?php the_permalink('http://viso.lv/wordpress/?p=76'); ?>"><?php the_post_thumbnail(); ?></a>
       <?php endif; ?>
   
       <h3><a href="<?php the_permalink('http://viso.lv/wordpress/?p=76'); ?>"><?php the_title(); ?></a></h3>
   
       <p><?php the_excerpt(); ?></p>
       <p class="text-muted" style="margin-bottom: 20px; border-bottom: 1px solid #e7e7e7">Опубликовано <?php the_author(); ?> на <?php the_time('F jS, Y'); ?></p>
   
       <?php endwhile; wp_reset_query(); ?>
       ```
   

The topic ‘Blog posts listing’ is closed to new replies.

## Tags

 * [custom theme](https://wordpress.org/support/topic-tag/custom-theme/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * 0 replies
 * 1 participant
 * Last reply from: [Roland Yegorov](https://wordpress.org/support/users/rolandjeg/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/blog-posts-listing/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
