Title: [Plugin: Post Type Switcher] Not Working in 3.1
Last modified: August 19, 2016

---

# [Plugin: Post Type Switcher] Not Working in 3.1

 *  Resolved [Alok Sharma](https://wordpress.org/support/users/aloksharma/)
 * (@aloksharma)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-not-working-in-31/)
 * A wonderful plugin but this does not seems to be working in 3.1. Updating the
   plugin will be highly appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [affilisites](https://wordpress.org/support/users/affilisites/)
 * (@affilisites)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-not-working-in-31/#post-1958234)
 * second
 *  [Vladimir Statsenko](https://wordpress.org/support/users/vladimirs/)
 * (@vladimirs)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-not-working-in-31/#post-1958336)
 * I can suggest a temporary solution of this issue.
 * Add the following code to the end of
    wp-content/plugins/post-type-switcher/post-
   type-switcher.php file. Just before php closing tag (?>).
 *     ```
       function pts_save( $post_id, $post ) {
       	if ( isset( $_POST[ 'pts_post_type' ] ) && $_POST[ 'pts_post_type' ] != $post->post_type ) {
       		$cur_post_id = $post_id;
       		//checking if current post is a revision
       		if ( false !== ( $id = wp_is_post_revision( $post ) ) ) {
       			$cur_post_id = $id;
       		}
       		//updating post type
       		set_post_type( $cur_post_id, $_POST[ 'pts_post_type' ] );
       	}
       }
   
       add_action( 'save_post', 'pts_save', 10, 2 );
       ```
   
 *  [kreviii](https://wordpress.org/support/users/kreviii/)
 * (@kreviii)
 * [15 years ago](https://wordpress.org/support/topic/plugin-post-type-switcher-not-working-in-31/#post-1958383)
 * <del>what if it isn’t showing up in the menu, isn’t supposed to be under “tools”
   I can’t remember, but either way is there a trick to make it display in the menu?
   or a path to go that it might still be at?</del>
 * Convert post types Plug-in works
 *  Plugin Author [John James Jacoby](https://wordpress.org/support/users/johnjamesjacoby/)
 * (@johnjamesjacoby)
 * [15 years ago](https://wordpress.org/support/topic/plugin-post-type-switcher-not-working-in-31/#post-1958387)
 * Apologies. Plugin was updated but new version was never pushed out.
 * Version 0.3 will fix these issues.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Post Type Switcher] Not Working in 3.1’ is closed to new replies.

 * ![](https://ps.w.org/post-type-switcher/assets/icon-256x256.jpg?rev=1823578)
 * [Post Type Switcher](https://wordpress.org/plugins/post-type-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-type-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-type-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/post-type-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-type-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-type-switcher/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [John James Jacoby](https://wordpress.org/support/users/johnjamesjacoby/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/plugin-post-type-switcher-not-working-in-31/#post-1958387)
 * Status: resolved