console for wordpress – wp-cli Install a wordpress blog: wp core download wp core config –dbname=wp_dbname –dbuser=wp_user –dbpass=wp_pass wp core install –url= –title=example –admin_user=admin –admin_password=admin – wp plugin install wp-anti-spam wp-super-cache wordpress-seo  

wordpress, style.css

Some boilerplates for wordpress theming: /* Theme Name: Twenty Twelve Child Theme URI: Description: Child theme for the Twenty Twelve theme Author: Your name here Author URI: Version: 0.1.0 */ And for child themes: /* Theme Name: Twenty Fourteen Child Theme URI: Description: Twenty Fourteen Child Theme Read more…

wordpress php helper

Helper for including theme assets, stylesheets or javascript files: function theme_asset($filename) { return get_stylesheet_directory_uri() . ‘/’ . $filename; } function theme_css($filename) { $filename = theme_asset($filename); return “<link href='{$filename}’ rel=’stylesheet’ type=’text/css’>”; } function theme_js($filename) { $filename = theme_asset($filename); return “<script type=’text/javascript’ src='{$filename}’></script>”; }