WordPress.org

Ready to get started?Download WordPress

Forums

WordPress templates and hierachy (3 posts)

  1. farmer_a
    Member
    Posted 4 months ago #

    Hello,

    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
    Member
    Posted 4 months 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
    Member
    Posted 4 months ago #

    Ok thanks Evan.

Reply

You must log in to post.

About this Topic