WordPress templates and hierachy (3 posts)

  1. farmer_a
    Posted 2 years ago #


    I'm a novice asking about php file size. I know the WordPress hierachy looks like this: http://wphierarchy.com/

    My question is: Will my site run faster if I lump all my php into page.php (using conditional tags for eight different pages) resulting in one big 24kB page.php file. Or am I best sticking to the template method resulting in eight smaller (3kB) php files?

    Thanks for any help,

    Andrew (Novice)

  2. Evan Herman
    Posted 2 years ago #

    I like to stick with the multiple, smaller php files. That way its just easier to mantain as opposed to sorting through tons of php code and conditional statements.

    I don't think you'll really see any negligible difference between the two, I think you'll see more of a major speed hit on heavy database queries.

  3. farmer_a
    Posted 2 years ago #

    Ok thanks Evan.

Topic Closed

This topic has been closed to new replies.

About this Topic