I am looking for WordPress chart/diagram system design.

I found only the template hierarchy diagram, but it's only part of the system.

enter image description here source: http://upload.wikimedia.org/wikipedia/commons/3/3d/Wordpress_Template_Hierarchy.png

  • Simply put WP is too large to be charted to the small details. Try to focus your question on which aspects precisely you are interested in.
    – Rarst
    Jul 10, 2012 at 23:26
  • in mvc model - chart: main routing, model, controller, view.
    – Ben
    Jul 19, 2012 at 8:23
  • @Yosef WordPress isn't really built around MVC
    – anu
    Jul 19, 2012 at 10:27

2 Answers 2


More than an Answer, this is a research and a compilation. Database Description already in Damien answer.

A Google search reveals this in WordPress forums:

UML documentation of WordPress
As far as I know, that's all we have. If you want to write one, I'm sure it'd be welcomed :)
(Ipstenu, referring to the Database Description)

UML of WordPress MU?
There will likely never be UML diagrams of WordPress because it's not an OO system. Some parts are OO-like, but overall it's whatever that particular code contributor made work. There's no map, just code.

And IMO, the point of UML is that it's done in the architecting phase. A project like WordPress would be hard-pressed to have this since it's a fluid integration of independent developers contributing to the core.

Welcome to open source.

Note: the Template Hierarchy of WikiMedia in the OP Question differs from the one in the Codex
Codex Template Hierarchy
click to enlarge

But, Chip Bennet has an extended one :)
Chip Bennet Template Hierarchy

I thought this Question was a duplicate of the following (but mods said it's not):
Where can I find a real architecture document on Wordpress?

In it, Mike Schinkel states:

These generally are not some the open-source WordPress community focuses on doing.

One answer points to an old article with this diagram:

And the other to this Wordpress 3.0 Program Flow (PDF)
Wordpress 3.0 Program Flow

Rarst answer to this Question ( When should you use WP_Query vs query_posts() vs get_posts()? ) has a nice overview of WP_Query:

Another from Rarst on core load:

And finally, a totally unrelated Question about performance ( Refactoring Wordpress to improve memory performance ), but with very nice graphs :)

  • 2
    Hats off to you @brasofilo thats a great research collection of reference diagrams.
    – Damien
    Jul 11, 2012 at 19:11
  • 2
    I've added my less known diagram of core load.
    – Rarst
    Jul 19, 2012 at 10:13
  • If I could vote this up more than once, I would. :-) Sep 16, 2012 at 1:09

If you are looking for the database schema, there is a version on the Codex: enter image description here

click to enlarge

The image you referenced in your post is the template hierarchy most commonly used by theme developers.

  • all system not only db
    – Ben
    Jul 19, 2012 at 8:14
  • Hi @Yosef ... from your recent comment .... what you should look up is a LAMP stack diagram then
    – Damien
    Jul 19, 2012 at 8:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.