console for wordpress – wp-cli

http://wp-cli.org Install a wordpress blog: wp core download wp core config –dbname=wp_dbname –dbuser=wp_user –dbpass=wp_pass wp core install –url=http://example.org –title=example –admin_user=admin –admin_password=admin –admin_email=me@example.org 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: http://example.com/ Description: Child theme for the Twenty Twelve theme Author: Your name here Author URI: http://example.com/about/ Version: 0.1.0 */ And for child themes: /* Theme Name: Twenty Fourteen Child Theme URI: http://example.com/twenty-fourteen-child/ 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>”; }