Title: [Plugin: Post Type Switcher] Post types do not change
Last modified: August 19, 2016

---

# [Plugin: Post Type Switcher] Post types do not change

 *  Resolved [amurderofcrows](https://wordpress.org/support/users/amurderofcrows/)
 * (@amurderofcrows)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-post-type-switcher-post-types-do-not-change/)
 * Post types do not change to pages using this plugin in WP 3.1

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

 *  [graphicagenda](https://wordpress.org/support/users/graphicagenda/)
 * (@graphicagenda)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-post-type-switcher-post-types-do-not-change/#post-1936410)
 * Same here.
 *  [rlgrobert](https://wordpress.org/support/users/rlgrobert/)
 * (@rlgrobert)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-post-type-switcher-post-types-do-not-change/#post-1936447)
 * +1. It seems that the functionality is still working in the plugin (i.e., When
   you choose a new post type in the drop down and click the “OK” button, the jQuery
   works correctly to update the hidden “#post_type” element.)
 * However, perhaps the WP3.1 changes to /wp-admin/post.php core file (the action
   of the form) make it so that it no longer respects changes made to the post_type
   parameter. I couldn’t figure out if this was the case or not, or how to fix the
   plugin…
 * Any one else?
 *  [Vladimir Statsenko](https://wordpress.org/support/users/vladimirs/)
 * (@vladimirs)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-post-type-switcher-post-types-do-not-change/#post-1936506)
 * 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 );
       ```
   
 *  [Happeh](https://wordpress.org/support/users/happeh/)
 * (@happeh)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-post-types-do-not-change/#post-1936617)
 * Thank you so much vladimir. I really needed that plugin and it is working on 
   the first few posts so far.
 * Any idea how to make it work on the bulk edit screen?
 *  Plugin Author [John James Jacoby](https://wordpress.org/support/users/johnjamesjacoby/)
 * (@johnjamesjacoby)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-post-types-do-not-change/#post-1936619)
 * Apologies. Plugin was updated but new version was never pushed out.
 * Version 0.3 will fix these issues.
 *  [rlgrobert](https://wordpress.org/support/users/rlgrobert/)
 * (@rlgrobert)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-post-types-do-not-change/#post-1936624)
 * Thanks for the update, seems to be working fine now.

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

The topic ‘[Plugin: Post Type Switcher] Post types do not change’ 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/)

 * 6 replies
 * 6 participants
 * Last reply from: [rlgrobert](https://wordpress.org/support/users/rlgrobert/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-post-types-do-not-change/#post-1936624)
 * Status: resolved