WordPress has minimum theme template files as
- style.css
- index.php
and also some other files as listed here.
If the theme developer wants to build theme with less bells and whistles, what are some of the template files which should be included at minimum? There isn’t any guidelines in the WordPress codex. Only thing that you can find is what files and when to include them. For making use of most of the WordPress functions without any conflict, there doesn’t seem to be specific number mentioned for number of template files.
So how many files should be there when you build a theme from say raw html template?
To have the theme listed:
style.css
With at minimum this:
For the theme to be functional:
index.php
index.php
must have a post loop, so this would be the bare minimum functionalindex.php
index.php is the defacto fallback for all template files WordPress might look for. All the rest are entirely optional, though I advise that you use them.
For more information on which templates are possible, see here:
http://codex.wordpress.org/Template_Hierarchy
Two –
styles.css
andindex.php
.If you’re gonna add additional functionality (some filters or actions) add to list
functions.php
.If you’re gonna add additional templates + number of templates
add screenshot of your theme + screenshot.(jpeg|png|gif)
It all depends on you. But minimum requirements are
style.css
andindex.php
.