Support Forum ยป User Profile

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • jo.onjo.on
    Participant

    Splendid! I'm looking forward seeing this project evolve ๐Ÿ˜€

    in reply to: MB Relationships โ€“ bi-directional relationships #8351
    jo.onjo.on
    Participant

    That is not entirely true. The basic usage code from the Post 2 Post plugin creates a relationship from post to page in a similar way:

    <?php
    function my_connection_types() {
    	p2p_register_connection_type( array(
    		'name' => 'posts_to_pages',
    		'from' => 'post',
    		'to' => 'page'
    	) );
    }
    add_action( 'p2p_init', 'my_connection_types' );
    ?>

    But on the admin side I am able to add pages to posts (when editing a post) as wel as add posts to pages (when editing a page), which would make sense for a bi-directional relationship..

    in reply to: MB Relationships - Connection Metadata? #8339
    jo.onjo.on
    Participant

    That is correct. There still are some errors in the documentation for this extension. In the code you added, remove the very last two characters: ");" They are not supposed to be there.

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