Title: twenty file single.php
Last modified: August 19, 2016

---

# twenty file single.php

 *  [runeveryday](https://wordpress.org/support/users/runeveryday/)
 * (@runeveryday)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/twenty-file-singlephp/)
 * i found this code `<?php if ( have_posts() ): while ( have_posts() ): the_post();?
   >`using in the default theme single.php? it’s a redundant!because in the single.
   php,it’s only one post, it’s useless to use the while loop.am i right? why not
   delete it?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/twenty-file-singlephp/#post-2044931)
 * Not – it’s not useless.
 *  Thread Starter [runeveryday](https://wordpress.org/support/users/runeveryday/)
 * (@runeveryday)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/twenty-file-singlephp/#post-2045000)
 * but what’s use of it? thank you.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/twenty-file-singlephp/#post-2045038)
 * You need the Loop to display *any* posts.
 *  Thread Starter [runeveryday](https://wordpress.org/support/users/runeveryday/)
 * (@runeveryday)
 * [15 years ago](https://wordpress.org/support/topic/twenty-file-singlephp/#post-2045057)
 * but there are only one post in the single.php, why should i use the loop?thank
   you

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘twenty file single.php’ is closed to new replies.

 * 4 replies
 * 2 participants
 * Last reply from: [runeveryday](https://wordpress.org/support/users/runeveryday/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/twenty-file-singlephp/#post-2045057)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
