This is my code in functions.php
function my_connection_types() {
if ( !function_exists( 'p2p_register_connection_type' ) )
return;
p2p_register_connection_type( array(
'name' => 'Works_to_Artists',
'from' => 'works',
'to' => 'artists',
'reciprocal' => true
) );
p2p_register_connection_type( array(
'name' => 'Crafts_to_Artists',
'from' => 'crafts',
'to' => 'artists'
) );
p2p_register_connection_type( array(
'name' => 'Works_to_Crafts',
'from' => 'crafts',
'to' => 'works'
) );
p2p_register_connection_type( array(
'name' => 'Works_to_Works',
'from' => 'works',
'to' => 'works',
'reciprocal' => true
) );
p2p_register_connection_type( array(
'name' => 'Crafts_to_Crafts',
'from' => 'crafts',
'to' => 'crafts',
'reciprocal' => true
) );
}
add_action( 'wp_loaded', 'my_connection_types' );
to give a bit more; the error is only No Artists Found (artists is my connection type)
the animated gif indicating search appears, but only the error comes up. using the name of the post to search and tried the ID, but nothing appears