Wordpress Plugin for custom post types