• How to make that it was possible to add a connections posts from the site frontend?
    wp_insert_post?

    function my_connection() {
        p2p_register_connection_type( array(
            'name' => 'posts_go_otzif',
            'from' => 'review',
            'to' => 'fantasy' //тут с чем нужно обьединить (название вашего произвольного типа записей)
        ) );
    }
    add_action( 'p2p_init', 'my_connection' );

    https://www.ads-software.com/plugins/posts-to-posts/

  • The topic ‘Add post’ is closed to new replies.