Whether you’re developing WordPress themes for yourself, for a client, or to sell commercially, having the ability to customize aspects of your theme via the WordPress control panel makes your theme infinitely flexible and many times more versatile and appealing.
The methods discussed here will only apply to WordPress 2.8 or above. There are a number of other tutorials available if you’re using an older version of WordPress