Support » Plugin: Posts 2 Posts » [Plugin: Posts 2 Posts] Admin Column for Reciprocal Connection

  • Resolved Joe Banks

    (@joebanks10)


    When I try to display an admin column for a reciprocal connection, an error is thrown:

    Notice: Undefined index: any in C:\wamp\www\test-site\wp-content\plugins\posts-to-posts\admin\column.php on line 48

    Fatal error: Call to a member function item_title() on a non-object in C:\wamp\www\test-site\wp-content\plugins\posts-to-posts\admin\column.php on line 61

    Below is the code I use to register the connection type:

    p2p_register_connection_type( array(
            'name' => 'spouses',
            'from' => 'constituent',
            'to' => 'constituent',
            'reciprocal' => true,
            'cardinality' => 'one-to-one',
            'title' => 'Spouse',
            'admin_column' => 'any',
            'admin_box' => array(
                  'show' => 'any',
                  'context' => 'normal'
            )
    ) );

    http://wordpress.org/extend/plugins/posts-to-posts/

Viewing 1 replies (of 1 total)
  • Plugin Author scribu

    (@scribu)

    Using P2P 1.3.1, I was able to reproduce the notice, but not the fatal error.

    Using P2P 1.4-alpha3, everything seems to work fine.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Posts 2 Posts] Admin Column for Reciprocal Connection’ is closed to new replies.