WordPress.org

Ready to get started?Download WordPress

Forums

Post Type Switcher
Conflict with other plugins (5 posts)

  1. mike235
    Member
    Posted 2 years ago #

    Maybe someone has already reported that, but the post type switcher plugin is beaking things when using in conjunction with the following plugins :

    • WP-Help : Plublishing a new Help document doesn't work, publishes a "post" instead.
    • Advanced Custom Fileds : Plublishing a new Custom Fields Group doesn't work, publishes a "post" instead.

    I can guess it's the same thing happening for both, and maybe other plugins, when publishing a plugin specific post type, instread of saving to said post type, it saves to default "post".

    Hope that helps, and thanks for this very useful plugin :)

    http://wordpress.org/extend/plugins/post-type-switcher/

  2. rpb1001
    Member
    Posted 2 years ago #

    Great plugin (in principle) but I also had an issue of it changing my ACF post_type to POST.

  3. pedro.testes2
    Member
    Posted 1 year ago #

    I`ve got stuck with this problem too, posts which post types were not public are saved with post type post, instead of the correct custom type.

    In order to make it work with Advanced Custom Fields and (maybe) other plugins, just add these lines to the function save_post, in post-type-switcher.php under /wp-content/plugins/post-type-switcher:

    ...function save_post( $post_id, $post ) {
    
    		//changed in order to do not change hidden custom post-types
    		if( get_post_type_object($post->post_type)->public == false)
    			return;
    
    		...
  4. Pietro Gregorini
    Member
    Posted 1 year ago #

    This worked for me too.
    I think it should be included by default in the plugin.

  5. Jay Collier
    Member
    Posted 1 year ago #

    I'm having a conflict with WP-Views and CRED; when they create a new post of a custom post type, they are changed to a standard WP post type upon saving. When deactivating CPT, the problem goes away.

    I've loved this plugin for a long time, and I really hope this can be fixed, or an alternative plugin be available.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic