WordPress.org

Support

Support » How-To and Troubleshooting » How does WordPress work?.. Behind the scenes code.

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)
  • 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….

    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.