Title: where does pages get its code from
Last modified: August 20, 2016

---

# where does pages get its code from

 *  [emaarkhan](https://wordpress.org/support/users/emaarkhan/)
 * (@emaarkhan)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/where-does-pages-get-its-code-from/)
 * Hi,
    i am looking for code that is used for populating page.php.i think that 
   is the page which show individual page.right? on the page.php it says `get_template_part('
   loop', 'page' );` I really don’t get it. does it mean its getting its code from
   loop.php? i want to style some page and i m unable to do that following i don’t
   know where the code is coming from.pls help

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

 *  [michael.mariart](https://wordpress.org/support/users/michaelmariart/)
 * (@michaelmariart)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/where-does-pages-get-its-code-from/#post-3174755)
 * What that function does is include a template file from your theme. In this case,
   it is looking for the template file ‘loop-page.php’, and if that’s not found 
   it will look for ‘loop.php’. You should have a read through this in the [codex](http://codex.wordpress.org/Function_Reference/get_template_part)
   as there’s a lot more information there, as well as with all of the other Wordprss
   functions.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/where-does-pages-get-its-code-from/#post-3174757)
 * >  i want to style some page and i m unable to do that following i don’t know
   > where the code is coming from.pls help
 * loop-page.php is coded in php same way page.php is and there is no way to style
   the page all the styling is done in style.css and the loop code get the content
   from database.
 * So you can style your content editor when you create a page which will be saved
   in database.
 *  Thread Starter [emaarkhan](https://wordpress.org/support/users/emaarkhan/)
 * (@emaarkhan)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/where-does-pages-get-its-code-from/#post-3174790)
 * Thanks it make sense. I was following a child theme video and thought perhaps
   styling could be controlled via loop.php but styling elements does. I have another
   question. The pages i have name title like About but the heading (the_title) 
   on page should be About ABC, How do i append those words with the title of page/
   modify it.
 *  Thread Starter [emaarkhan](https://wordpress.org/support/users/emaarkhan/)
 * (@emaarkhan)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/where-does-pages-get-its-code-from/#post-3174799)
 * I see the comment field is still there. Is there way in loop, i can comment out
   comments so it doesn’t show up?

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

The topic ‘where does pages get its code from’ is closed to new replies.

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [page.php](https://wordpress.org/support/topic-tag/page-php/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [emaarkhan](https://wordpress.org/support/users/emaarkhan/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/where-does-pages-get-its-code-from/#post-3174799)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
