Support » Fixing WordPress » WordPress templates and hierachy

  • Hello,

    I’m a novice asking about php file size. I know the WordPress hierachy looks like this:

    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)

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Ok thanks Evan.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress templates and hierachy’ is closed to new replies.