All posts tagged wordpress

Installing SSH2 Extension for PHP on CentOS 5

Here is a great tutorial from Dynamic Hosting Blog on installing ssh2 extension for php. I use this often for wordpress installations since I don’t normally setup my server with ftp. This will allow me to download and install updates/plugins using ssh instead of using the less secure ftp.

via Installing SSH2 Extension for PHP on CentOS 5 | Dynamic Hosting Blog.

Show Categories Filter on Custom Post Type List

Found this useful thread on displaying a category filter on a custom post type in wordpress. Here’s the code:

add_action( 'restrict_manage_posts', 'my_restrict_manage_posts' );
function my_restrict_manage_posts() {
	global $typenow;
	$taxonomy = 'your_custom_taxonomy_name';
	if( $typenow != "page" && $typenow != "post" ){
		$filters = array($taxonomy);
		foreach ($filters as $tax_slug) {
			$tax_obj = get_taxonomy($tax_slug);
			$tax_name = $tax_obj->labels->name;
			$terms = get_terms($tax_slug);
			echo "<select name='$tax_slug' id='$tax_slug' class='postform'>";
			echo "<option value=''>Show All $tax_name</option>";
			foreach ($terms as $term) { echo '<option value='. $term->slug, $_GET[$tax_slug] == $term->slug ? ' selected="selected"' : '','>' . $term->name .' (' . $term->count .')</option>'; }
			echo "</select>";
		}
	}
}

WordPress › Support » Show Categories Filter on Custom Post Type List.

Upload issues on WordPress with Mediatemple DV server

I was having some trouble a while back uploading media to my WordPress install. I would continually get an error stating that the media couldn’t be moved to the correct folder. I had tried all the forum solutions including even changing permissions to 777. Nothing seemed to work. After stumbling across a few threads on wordpress and finding a Mediatemple community wiki article I came up with a solution. Continue reading →

Multi Currency PayPal Donations WP Plugin

UPDATE Jan 25, 2010: Realised that there were some bugs in the plugin. I’ve done my best to fix them, but if you come across anything else please leave a comment below.

Check out my first WordPress plugin:

Description

PayPal charges high fees for cross border transactions. If you are one of the fortunate few that have paypal accounts in multiple currencies then this plugin is for you. It allows you to route different currencies to specific paypal accounts. Even if you don’t have multiple paypal accounts this is still a great plugin for accepting donations. Continue reading →