• Resolved aces

    (@aces)


    I am using the debug bar plugin on a local dev site.

    The 2 custom post type archives pages get a notice ending with:
    \wp-content\plugins\posts-to-posts\core\side.php:164 - Undefined property: stdClass::$post_type

    Everything seems to work properly so it isn’t critical, but I would like it to go away and don’t know where to start?

    http://ww.wp.xz.cn/extend/plugins/posts-to-posts/

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

    (@scribu)

    Please paste your p2p_register_connection_type() call.

    Thread Starter aces

    (@aces)

    function my_connection_types() {
    
    	p2p_register_connection_type( array(
    
    		'reciprocal' => true,
    		'title' => 'property location',
    
    		'name' => 'property_to_city',
    		'from' => 'properties',
    		'to' => 'locations',
    		'admin_column' => 'any'
    
    	) );
    }
    
    add_action( 'p2p_init', 'my_connection_types' );
    Thread Starter aces

    (@aces)

    I think I solved my issue.

    I had a posts to posts widget on the archive pages which wasn’t necessary.

    When I disable the widget for those pages I don’t get the debug notice….

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

The topic ‘[Plugin: Posts 2 Posts] Debug Notice?’ is closed to new replies.