How to change “Draft” string for status of custom post type to “Unavailable”?

I was investigating the issue for this question, and one option is using the plugin Edit Flow. It can be configured to display custom post_status in specific CPT’s, but further tests are necessary to see if it applies to this case. Other option is using toscho’s Retranslate plugin, where you can define the string to … Read more

How to Make a Separate RSS Feed for Each Custom Post Type

add the small example function: add_action( ‘request’, ‘fb_add_to_feed’ ); // add to post-feed function fb_add_to_feed($request) { if ( isset($request[‘feed’]) && !isset($request[‘post_type’]) ) { $request[‘post_type’] = get_post_types( $args = array( ‘public’ => true, ‘capability_type’ => ‘post’ ) ); } return $request; } Alternative you can creat a own feed onl yfor the custom post type. See … Read more

How can I include custom post types on a tag page?

function post_type_tags_fix($request) { if ( isset($request[‘tag’]) && !isset($request[‘post_type’]) ) $request[‘post_type’] = ‘any’; return $request; } add_filter(‘request’, ‘post_type_tags_fix’); You can alter the post type to your liking. From this post. Custom post type tag archives don’t work for basic loop?

How to assign specific users the capability to edit specific pages / posts / custom post types

I can suggest another method. First of all: grant full access to projects post type (Example). At the user profile add allowed posts’ id. Then use below filter to restrict access if post id isn’t allowed. function allow_user_to_edit_cpt_filter( $capauser, $capask, $param){ global $wpdb; $allowed_posts_id_for_current_user = array( ’29’, ’30’ ); // you need to get these … Read more

Creating “static” taxonomies to choose from, inside custom post type?

Make it show_ui => false Then to show it on the post edit screen add the box manually add_action(‘add_meta_boxes’, ‘meta_boxes_function’); function meta_boxes_function() { add_meta_box(‘categoriesdiv’, ‘categories’, ‘post_categories_meta_box’, ‘blurb’, ‘side’, null, array(‘taxonomy’ => ‘categories’)); } use this code for every static term if(!term_exists(‘term1’, ‘categories’)) wp_insert_term(‘term1’, ‘categories’);