Better theme file structures coming in WordPress 3.4
One of the new features coming with the release of WordPress 3.4 is an improved file structure for themes. Currently, all files live under the same directory, which can get a bit messy depending on how many templates, pages, etc. your theme has.As an example, currently your theme file structure looks like this
/theme folder
–page-contact.php
–page-about.php
With the new structure that will look like this:
/theme-directory
index.php
—-/pages
——–/page-about.php
——–/page-contact.php
And the best part? You don’t have to tell WordPress to go looking in the folder, ( as long as you only go one layer deep), it will look automatically for the file!
Category: Build



