WordPress.org

Forums

How does WordPress work?.. Behind the scenes code. (3 posts)

  1. The Eternal Noob
    Member
    Posted 5 years ago #

    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 ;)

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 5 years ago #

    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....

  3. The Eternal Noob
    Member
    Posted 5 years ago #

    Ah.. Thanks :)
    I think I can see how it all works now.

Topic Closed

This topic has been closed to new replies.

About this Topic