Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author scribu

    (@scribu)

    Revisions should have the ‘revision’ post type. You probably used the Post Type Converter plugin, which doesn’t convert revisions properly.

    Thread Starter MWM

    (@mike235)

    Indeed, the Post Type Switcher plugin has caused many troubles..

    But still, why does P2P show posts other than just “published” ? Is there a way to hide them ?

    Plugin Author scribu

    (@scribu)

    It shows all post statuses, including drafts, pending etc. intentionally.

    You can set a different ‘post_status’ through the ‘p2p_connectable_args’ filter:

    https://github.com/scribu/wp-posts-to-posts/wiki/Admin-box-filters

    Thread Starter MWM

    (@mike235)

    Thanks,

    This solved it :

    function mwm_posts2posts_show_published_only( $args, $ctype, $post_id ) {
    
    	$args['post_status'] = 'publish';
    
    	return $args;
    
    }
    add_filter( 'p2p_connectable_args', 'mwm_posts2posts_show_published_only', 10, 3 );
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Posts 2 Posts] How to hide post revisions (inherit) in P2P UI’ is closed to new replies.