Posts 2 Posts
[resolved] Reciprocal connection isn't being created (2 posts)

  1. Ricardo
    Posted 6 years ago #

    My two cents:

    One-way connections work just fine, but the reciprocals aren't being created even though I set the "bydirectional" variable to true. I'm registering the connection type with the following lines:

    function my_connection_types() {
        p2p_register_connection_type('post', 'page', true);
    add_action('init', 'my_connection_types', 100);

    By the way, I tried connecting two objects of the exact same type (i.e. pages to pages) and the plugin behaved correctly, except when I activated the reciprocal connection: in that case, after updating the post/page you'll see all established connections duplicated. Also, the reciprocal connections aren't being created.

    Hope this helps, the idea behind this plugin is very good :)


  2. scribu
    Plugin Author

    Posted 5 years ago #

    Thanks for reporting. Both issues are now fixed in the development version (0.3-alpha).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic