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.
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.
Yes, using reciprocal => true is the appropriate way of controlling this.
Not sure what you mean by "hiding the current post type".
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.
So, in other words, the problem is that you're able to connect a post to itself?
Yes. That is indeed a better explanation.
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().
Okay, thanks. Will going to try it.
You must log in to post.