Support » Plugins and Hacks » Posts 2 Posts » [Plugin: Posts 2 Posts] Connections lost after update tp 1.4.2

[Plugin: Posts 2 Posts] Connections lost after update tp 1.4.2

  • just a little feedback on your latest plugin update that broke my connections.

    maybe my connection type is wrong?

    p2p_register_connection_type( array(
            'name' => 'CONNECTION',
            'from' => 'product',
            'from_query_vars' => array(
                'product_cat' => 'CAT1'
    	'to' => 'product',
            'to_query_vars' => array(
                'product_cat' => 'CAT2'
            'fields' => array(
                'standard' => array(
                    'title' => 'Standard',
                    'type' => 'checkbox'
            'title' => 'TITLE',
    	'sortable' => 'any',
    	'admin_box' => 'from'
        ) );

    to retrieve the connections i use:

    function get_options($base_id, $connection_type){
        $options = get_posts( array(
            'connected_type' => $connection_type,
            'connected_items' => intval($base_id),
            'nopaging' => true,
            'suppress_filters' => false,
            'orderby' => 'title',
            'order' => 'ASC'
        ) );
        return $options;

    Thanks for this great plugin!


    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]

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


    Are they gone from WP-Admin too or just on the front-end?

    Both from front- and backend =(
    With v 1.4.1 all good.

    Plugin Author scribu


    I can reproduce the problem. It’s related to the ‘from_query_vars’ / ‘to_query_vars’ args.

    Plugin Author scribu


    The connections show up fine for me in 1.4.3. Are you able to create new connections in wp-admin?

    Just updated the plugin to the latest version (1.4.3) on our test environment with the following result:

    – connections disappeared both in front- and backend
    – both for the FROM as well as the TO posts of the connection the FROM posts are listed as available connections
    – after having connected a post from the TO category to the FROM category the connections will not show neither front- nor backend.
    – interestingly when trying to add them again, the “Duplicate connections are not allowed.” error message comes up, as if the connections have been established.

    sorry to not have better news for you and thanks again for looking into this. please let me know if i can be of any help.

    version 1.4.1 continues to work fine, so all good from our side for now.

    best regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Posts 2 Posts] Connections lost after update tp 1.4.2’ is closed to new replies.