http://pastebin.com/3te8z76g
I’ve given you two examples, this is just one implementation, I thought it would be best to start small in order to figure out where I’m going wrong. Your plugin is used all over this site, so right now just about everything is broken. 🙁
I’ll check the admin box now.
Plugin Author
scribu
(@scribu)
For this one:
$sports_query = new WP_Query(array('post_type' => 'sports', 'connected_from' => $post->ID));
you’re missing the ‘connected_type’ parameter.
$sports_query = new WP_Query(array('connected_type' => 'athletes_to_sports','post_type' => 'sports', 'connected_items' => $post->ID));
This one looks fine, but again, the ‘post_type’ parameter is not necessary. What matters is what post_type $post has.
Ok, just checked in Chrome for JS errors and everything looks clear.
Hi,
I have a similar problem. all connections disappeared after updating plugin in front-end and back-end. I can add new connection, but will be lost after saving. I tried to solve the problem using the instructions on the wiki, but without success.
Here is my code http://pastebin.com/cpZWwCuP. I use wp 3.4.2 and p2p plugin 1.4.3
thaks for help
Plugin Author
scribu
(@scribu)
@coneff: Please start a new thread, since this one was resolved.
That’s also why I forgot to reply to @reneelung.