WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
[resolved] Connect posts of the same post type (7 posts)

  1. Marko Heijnen
    Member
    Posted 2 years ago #

    Any change to make it more friendly to connect posts of the same post type.
    At this moment you see both the boxes but only one is needed.
    (Fixed by setting reciprocal: true.

    Also the current post type should be hidden.

    http://wordpress.org/extend/plugins/posts-to-posts/

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, using reciprocal => true is the appropriate way of controlling this.

    Not sure what you mean by "hiding the current post type".

  3. Marko Heijnen
    Member
    Posted 2 years ago #

    When you for example connection from post to post and you want to edit a post in wp-admin with for example Hello world (post_id = 1) you also can select the same post in the p2p metabox. Seems something unwanted.

  4. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    So, in other words, the problem is that you're able to connect a post to itself?

  5. Marko Heijnen
    Member
    Posted 2 years ago #

    Yes. That is indeed a better explanation.

  6. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Agreed. Fixed in the development version (1.1.5-alpha).

    If you want to enable a post to be connected to itself again, pass 'self_connections' => true to p2p_register_connection_type().

  7. Marko Heijnen
    Member
    Posted 2 years ago #

    Okay, thanks. Will going to try it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic