Cheesetoast

Brain Food for Web Developers

A custom theme menu under the 'Appearance' tab of the Wordpress admin area

September 14, 2012
by Graham
Comments Off on Add Custom Theme Options to WordPress Admin Menu

Add Custom Theme Options to WordPress Admin Menu

Learn how to add your custom options page to one of the existing Wordpress admin menus.
In this example I’ll demonstrate how to create a simple options page that allows the user to add a telephone number which will be displayed in the top right corner of a site. Continue reading

PHP Code

September 7, 2012
by Graham
Comments Off on WordPress Functionality Plugin to Accompany Functions.php

WordPress Functionality Plugin to Accompany Functions.php

When customizing a Wordpress site it’s common practice to add tweaks and functionality to a theme’s functions.php file. As I learned recently however, this is not always the best approach.

An interesting article on WP Candy points out the disadvantage of linking site functionality to a theme that will inevitably change some day. The proposed solution is to create a functionality plugin separate from the functions file. Continue reading