I've taken to the practice of doing something like this whenever I need to create multiple widgets in a theme that all have the same basic parameters. function create_widget($name, $id, $description) { register_sidebar(array( 'name' => __( $name ), 'id' => $id, 'description' => __( $description ), 'before_widget' => ' ', 'after_widget' => ' ', 'before_title' … Continue reading Create a Function to Create WordPress Widgets
Tag: Theme Development
10 Simple Steps to Migrate WordPress from Local to Live Server
When you start to develop a lot of WordPress themes, you will find your natural rhythm moving sites from local development to live testing or production environments. Here is a simple 10 step process for doing just that. The process works even if the sites have different URLs. Backup your WordPress site using WordPressBackUp or … Continue reading 10 Simple Steps to Migrate WordPress from Local to Live Server
Learn WordPress From Beginning to Theme Development at Treehouse
A month or two ago we launched a WordPress Learning Track at Treehouse. We start with learning how to setup and use WordPress, move into some HTML and CSS, and then learn how to build a WordPress theme from scratch. Check it out over at teamtreehouse.com.
How to Add the Site URL to the wp-config.php File
I find that adding the URL to the wp-config.php file helps when transferring a site from local to live production. define('WP_HOME', 'http://www.example.com'); // no trailing slash define('WP_SITEURL', 'http://www.example.com'); // no trailing slash