Title: Single.php and page.php?
Last modified: August 18, 2016

---

# Single.php and page.php?

 *  [webdressing](https://wordpress.org/support/users/webdressing/)
 * (@webdressing)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/singlephp-and-pagephp/)
 * Hi everyone. We’re trying to learn how make templates and was wondering what 
   the function of single.php and page.php was? Index, header, footer, comments 
   and searchform.php all make sense, but we can’t figure out what single and page.
   php are needed for.
 * Can anyone briefly explain what thier purpose is? Thanks.

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

 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/singlephp-and-pagephp/#post-533934)
 * Single.php is for single posts. In the blog portion of your site, the headers
   are all inks. Single.php is the layout you see when you want to view just that
   one single post. If you don’t make a layout for it, it uses the default.
 * Page.php is for your Pages (static wordpress Pages). Again, if you don’t make
   a different template for Pages, then WP uses the default.
 *  Thread Starter [webdressing](https://wordpress.org/support/users/webdressing/)
 * (@webdressing)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/singlephp-and-pagephp/#post-533939)
 * _ In the blog portion of your site, the **headers** are all links._
 * Shouldn’t that read ‘titles’? Doesn’t clicking on the header area always take
   you back to the index page?
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/singlephp-and-pagephp/#post-533944)
 * _Shouldn’t that read ‘titles’? Doesn’t clicking on the header area always take
   you back to the index page?_
 * I was thinking of code. Your titles *are* headers (`<h2>`).
 * And no, it doesn’t always take you back – only does if you have it set to do 
   so.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 2 months ago](https://wordpress.org/support/topic/singlephp-and-pagephp/#post-533963)
 * webdressing: It would probably help you to read this:
    [http://codex.wordpress.org/Template_Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
 *  Thread Starter [webdressing](https://wordpress.org/support/users/webdressing/)
 * (@webdressing)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/singlephp-and-pagephp/#post-534053)
 * That looks great Otto42. **Thank you** for the link, I really appreciate it 🙂

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

The topic ‘Single.php and page.php?’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [single](https://wordpress.org/support/topic-tag/single/)

 * 5 replies
 * 3 participants
 * Last reply from: [webdressing](https://wordpress.org/support/users/webdressing/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/singlephp-and-pagephp/#post-534053)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
