Is there a way to use regular categories with custom post types?

No problem, the categories and tags are also registered as taxonomies that you can pass to the taxonomies argument when you call register_post_type(). Categories are category and tags are post_tag. You can also do this later with register_taxonomy_for_object_type(): add_action( ‘init’, ‘wpse6098_init’, 100 ); // 100 so the post type has been registered function wpse6098_init() { … Read more

Ordering Posts List By Taxonomy Terms?

WordPress core (as expressed by involved people on multiple occasions) strongly discourages sort by terms. It sees terms as exclusively grouping mechanism, with no ordering capabilities implied. So in your specific case WP would understand that there are different directors, that there are groups of shows done by those directors, but won’t at all understand … Read more

How to filter custom post types by custom category taxonomy

You are doing a little mistake in your $pargs As per documentation Important Note: tax_query takes an array of tax query arguments arrays (it takes an array of arrays). Also you have “post_per_page” instead of “posts_per_page” $pargs = array( ‘posts_per_page’ => ‘-1’, ‘post_type’ => ‘products’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘category’, ‘field’ => ‘slug’, … Read more

Remove Trash / Delete option for Custom Post Type / Taxonomy

Try these: /** * Removes the “Trash” link on the individual post’s “actions” row on the posts * edit page. */ add_filter( ‘post_row_actions’, ‘remove_row_actions_post’, 10, 2 ); function remove_row_actions_post( $actions, $post ) { if( $post->post_type === ‘prj’ ) { unset( $actions[‘clone’] ); unset( $actions[‘trash’] ); } return $actions; } add_action(‘wp_trash_post’, ‘restrict_post_deletion’); function restrict_post_deletion($post_id) { if( … Read more

RSS Feed for posts containing any term from a taxonomy

The Solution WordPress 3.1 Taxonomy Feeds Plugin (Must Use) Put that must-use plugin on your site and request: http://blog.example.com/feed/?taxonomy=taxonomy-name as you asked for it. Detailed Information WordPress offers requesting the feed with multiple configurations. Finding Your Feed URL (WordPress Codex) shows what is possible. Next to the standard feed (posts) you can have the following: … Read more

How do you remove a Category-style (hierarchical) taxonomy metabox?

Non-hierarchical taxonomies (like tags) use tagsdiv-{$tax_name}. Hierarchical taxonomies (like categories) use {$tax_name}div. This is for historical reasons: categories were placed in categorydiv, tags in tagsdiv. When support for multiple non-hierarchical taxonomies was added, the tagsdiv name was expanded to tagsdiv-{$tax_name}. When finally multiple hierarchical taxonomies were made possible, they choose to generalize categorydiv to {$tax_name}div.