This post is one in the series on creating a Wordpress Theme, including design aspects, mock-up to code, WordPress’s PHP and debugging. This series assumes you know a little bit… If you’re still clueless after the series, contact me and I’ll explain further for you.
Before you can make a WordPress theme (well, a good theme at any rate), you need to know what makes up a theme and how one works.
WordPress stores all of its data - your posts, comments, settings etc. - in a MySQL database, from which is uses PHP to “grab” data from this database.
A WordPress theme can be made of just one PHP file, however for editing purposes it is generally split up into four main files:
- header.php
- index.php
- sidebar.php
- footer.php
Three of these files (header.php, sidebar.php and footer.php) are “called” from index.php when a page or post is loaded. Read the rest of this entry »