$this->add_meta_box( 'select_post_template', __( 'Post Template', 'custom-post-templates' ), 'select_post_template', 'post', 'side', 'default' );

To create a wordpress plugin use custom publish types, I have learned to alter "publish" towards the title from the custom publish type. Does anybody determine if I makes it use all custom publish types (including regular posts) by altering this line in some way?

FYI, I discovered this at: http://wordpress.org/support/topic/custom-post-templates-with-custom-post-types-in-wp-30?replies=5#post-1679398

And it is in mention of Custom Publish Template wordpress plugin: http://wordpress.org/extend/plugins/custom-post-template/

Thanks ahead of time!

EDIT:

I have attempted:

$post_types = get_post_types(array("public" => true));
foreach ($post_types as $post_type) {
  $this->add_meta_box("select_post_template", __("Post Template", "custom-post-templates"), "select_post_template", $post_type, "side", "default");
}

However the custom publish types still do not get web site selection menu. The posts do, just like they did using the original code. Thank you for suggestion... does anybody have another?

Note: Conceptually, the approach is solid. Basically create my very own array with a listing of my custom publish types, this code does add the templating for them.

You are able to loop through all of the registered publish types and add the meta box for every, although you may want to remove particular kinds as accessories will also be posts.

$post_types = get_post_types(array("public" => true));
foreach ($post_types as $post_type) {
  add_meta_box("select_post_template", __("Post Template", "custom-post-templates"), "select_post_template", $post_type, "side", "default");
}

Associated particularly towards the Custom Publish Template wordpress plugin, I believe however , your custom publish types are registered after it's initialised (because it does not make use of a hook). So, $post_types (above) does not contain your types and meta boxes can't be added on their behalf. You could attempt adding this hack (in the finish of custom-post-templates.php):

add_action('init', 'hack_add_meta_boxes');
function hack_add_meta_boxes() {
  global $CustomPostTemplates;
  $post_types = get_post_types(array('public' => true));
  foreach ($post_types as $post_type) {
    $CustomPostTemplates->add_meta_box( 'select_post_template', __( 'Post Template', 'custom-post-templates' ), 'select_post_template', $post_type, 'side', 'default' );
  }
}