Title: How does WordPress work?.. Behind the scenes code.
Last modified: August 19, 2016

---

# How does WordPress work?.. Behind the scenes code.

 *  [the-eternal-noob](https://wordpress.org/support/users/the-eternal-noob/)
 * (@the-eternal-noob)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/how-does-wordpress-work-behind-the-scenes-code/)
 * Alright, I didn’t know where to post this and I did a search for it, though i
   didn’t really know what to search for either.
 * Anyways, my question is: How does WordPress work? Meaning all the behind the 
   scenes action.. I know that functions are called like _get\_header();_ and that
   all ( i guess) are defined in **general-template.php** but where is **general-
   template.php** included into the script of say **index.php**???
 * I am going to use WordPress as a Content Management System for a school project
   or rather final project( I’m studying Multimedia and Communications btw) and 
   I need to be able to explain the code and how it’s all connected.
 * So if someone could explain to me how it all works and where the functions etc.
   are defined I would be VERY, VERY grateful.
 * Thanks in advance 🙂
 * P.S. Don’t be afraid to use complicated explanations and references to W3 or 
   PHP.net or the like since I’m used to working with code 😉

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

 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/how-does-wordpress-work-behind-the-scenes-code/#post-1419783)
 * Well to start, your main index.php (the one in wp root, not in the theme) tells
   wp to use your theme, and to load up wp-blog-header.php.
 * You can follow down the rabbit hole from there…
    wp-blog-header.php gets ya wp-
   load.php and template-loader.php
 * and you can look into those files to see where we go from there….
 *  Thread Starter [the-eternal-noob](https://wordpress.org/support/users/the-eternal-noob/)
 * (@the-eternal-noob)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/how-does-wordpress-work-behind-the-scenes-code/#post-1420064)
 * Ah.. Thanks 🙂
    I think I can see how it all works now.

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

The topic ‘How does WordPress work?.. Behind the scenes code.’ is closed to new 
replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [get_header](https://wordpress.org/support/topic-tag/get_header/)
 * [index.php](https://wordpress.org/support/topic-tag/index-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [the-eternal-noob](https://wordpress.org/support/users/the-eternal-noob/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/how-does-wordpress-work-behind-the-scenes-code/#post-1420064)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
