• Hi there. Thanks for the great plugin.

    Having a bit of difficulty getting the search function where you choose which post to connect to.

    Bit frustrating that we can’t use it since its there and theres so many connections to choose from.

    Maybe I’m doing something obvious, just wondered if anyone had the same issue?

    D

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter davidbova

    (@davidbova)

    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

    Thread Starter davidbova

    (@davidbova)

    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' );

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

The topic ‘Search Function within Post 2 Posts’ is closed to new replies.