• Resolved salocined

    (@salocined)


    False manip, and I updated the plugin from 0.8 to 1.1.6 in 1 click…

    Lost my connections, grrrr….

    I modified my p2p_register_connection_type to add the name of the connection, but all old connections are not visible. If I create a new connection, it does display.

    MY old p2p_register
    p2p_register_connection_type( 'consultant', 'page', true );

    My Old wp_query
    $consultant_query = new WP_Query( array('suppress_filters' => false, 'post_type' => 'consultant','connected' => $post->ID) );

    My New p2p_register
    p2p_register_connection_type( array('name' => 'consultant_to_pages','from' => 'consultant','to' => 'page') );

    My New WP_Query
    $consultant_query = new WP_Query( array('connected_type' => 'consultant_to_pages', 'connected_items' => get_queried_object_id(),'nopaging' => true, ) );

    Is there any way I can get them back without recreating each connection manually?

    help…
    thx

    https://www.ads-software.com/extend/plugins/posts-to-posts/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Posts 2 Posts] Connection lost after upgrade’ is closed to new replies.