WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
'to_query_vars' and 'can_create_post' (1 post)

  1. bazel
    Member
    Posted 4 months ago #

    I can't create new post from the metabox if 'to_query_vars' exists in p2p_register_connection_type
    this is my code

    p2p_register_connection_type( array(
    		'name' => 'contact_to_purchase',
    		'from_query_vars' => array('post_status' => 'any'),
    		'from' => 'purchase',
    		'to_query_vars' => array('post_status' => 'any','contact-categories' => 'vendor'),
    		'admin_dropdown' => 'to',
    		'to' => 'contact',
    		'admin_column' => 'any',
    		'cardinality' => 'many-to-many',
                    'can_create_post' => true
    
    	) );

    create new post is link is not showing in the metabox
    Any help?

    https://wordpress.org/plugins/posts-to-posts/

Reply

You must log in to post.

About this Plugin

About this Topic