Genre: Instruction

Main menu How To Create A WordPress Theme Options Page Adding some options for a theme yields great benefits. For example, theme-specific ad-spaces can be modified or enabled/disabled without the end user having to modify the themes code. This not only provides ease-of-use, but ensures that a user can upgrade to a newer version of the theme without losing what they have changed. The Basics -- Functions.php A WordPress theme may include a 'functions file', aptly named functions.php, which can be used to add plugin-like functionality to your theme; including an options page The Scenario You are developing a theme named EpicTheme and want to provide the site admin with the ability to easily insert their Adsense code for a specific part of the site and choose their preffered RSS URL (e.g. feedburner) to be used. Step One -- Adding An Options Page ... is quite self-explanatory as most WordPress functions, however, you must use a hook as this will determine where in the existing menu your page will be listed. We will create a top-level, using the admin_menu hook.