start new:
tmux
start new with session name:
tmux new -s myname
| <?php | |
| /** | |
| * Rename "Posts" to "News" | |
| * | |
| * @link http://new2wp.com/snippet/change-wordpress-posts-post-type-news/ | |
| */ | |
| add_action( 'admin_menu', 'pilau_change_post_menu_label' ); | |
| add_action( 'init', 'pilau_change_post_object_label' ); | |
| function pilau_change_post_menu_label() { |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
This will enable Sass+Compass with LiveReload through Guard. (Guard screen cast)
You will also need a browser component to communicate with LiveReload. (browser extension, livereload.js)
If you prefer going through a GUI, that option is available. The following instructions is specific to Mac OS X and it works through the command line.
Note that this is not specific to Rails projects. This can work for any standalone front-end project.
| <?php | |
| /* | |
| Description: Adds a taxonomy filter in the admin list page for a custom post type. | |
| Written for: http://wordpress.stackexchange.com/posts/582/ | |
| By: Mike Schinkel - http://mikeschinkel.com/custom-workpress-plugins | |
| Instructions: Put this code in your theme's functions.php file or inside your own plugin. Edit to suite your post types and taxonomies. Hope this helps... | |
| */ | |
| add_filter('manage_listing_posts_columns', 'add_businesses_column_to_listing_list'); | |
| function add_businesses_column_to_listing_list( $posts_columns ) { | |
| if (!isset($posts_columns['author'])) { |