• Resolved c2frobbo

    (@c2frobbo)


    Hello,

    I’ve searched the forums and cannot figure out what I am doing wrong. I’m using WordPress 3.1.2 and version 0.7 of the plugin

    I have the following code at the bottom of my functions.php file:

    if ( ! function_exists( 'bvp_connection_types' ) ) :
    
    function bvp_connection_types() {
      if ( !function_exists( 'p2p_register_connection_type' ) )
        return;
    
      p2p_register_connection_type( array(
                        'from' => 'productions',
                        'to' => 'people',
                        'fields' => array(
                             'role' => 'Role',
                             'role_type' => 'Role Type'
                             ),
                        'prevent_duplicates' => false,
                        'reciprocal' => true,
                        'title' => array(
                              'from' => 'Played In',
                              'to' => 'Cast'
                              )
                       ) );
    }
    
    add_action( 'init', 'bvp_connection_types', 100 );
    endif;

    Yet, when I go to edit/add a production or person I do not see the metabox and am not able to make connections.

    Any ideas?

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

    (@scribu)

    Are you sure the post types aren’t actually ‘production’ and ‘person’ ?

    Thread Starter c2frobbo

    (@c2frobbo)

    Thanks, scribu. I’m not really sure what I had done wrong but when I reloaded the site today the metabox is working. Sorry to take up your time.

    Looking great so far. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Posts 2 Posts] Not seeing metabox’ is closed to new replies.