Using 1 taxonomy for multiple post types?

You can use an array of post types in register_taxonomy() $object_type (array/string) (required) Name of the object type for the taxonomy object. Object-types can be built-in Post Type or any Custom Post Type that may be registered. http://codex.wordpress.org/Function_Reference/register_taxonomy Example: register_taxonomy( ‘artist’, array( ‘profile’, ‘cd’ ), $args );

WP 3.1 – archive pages for custom content types possible now without a plugin?

Yes, you’ll just need to set the has_archive parameter to true or your chosen slug when registering your custom post type. So firstly add the has_archive parameter to your post type, here’s an example… add_action( ‘init’, ‘question_10706_init’ ); function question_10706_init() { register_post_type( ‘example’, array( ‘labels’ => array( ‘name’ => __(‘Examples’), ‘singular_name’ => __(‘Example’) ), ‘public’ … Read more

Remove quick edit for custom post type

Check out the builk actions page in the codex. I believe the proper action to unset is inline. This will remove the “Edit” bulk action, which is actually quick edit. <?php function remove_bulk_actions( $actions ){ unset( $actions[‘inline’] ); return $actions; } add_filter(‘bulk_actions-custom_post_type_slug’,’remove_bulk_actions’); ?> As for the Quick edit in each row, look into manage_{$post_type}_columns, as … Read more

Get post type on edit page

There are hooks and variables set that will allow you determine post type pretty easily, so you can hook onto actions specific to a given type, i’m going to provide some examples below. Examples If wanted to add a metabox to the post creation screen for the book post type, then i’d probably use a … Read more

Seperating Custom Post Search Results

You can group posts by type using posts_groupby filter hook: add_filter(‘posts_groupby’, ‘group_by_post_type’ ); function group_by_post_type( $groupby ) { global $wpdb; if( !is_search() ) { return $groupby; } $mygroupby = “{$wpdb->posts}.post_type”; if( !strlen(trim($groupby))) { // groupby was empty, use ours return $mygroupby; } // wasn’t empty, append ours return $groupby . “, ” . $mygroupby; } … Read more

Apply template to custom post type

Typically I wouldn’t follow such a strong answer like the one @Milo provided with a post like this. Since I already had this code written for another project I thought I’d share. The code below does everything @Milo summarized in his answer and I’ve ported this across projects before with great success. Here’s the cheat … Read more