non_human
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Can't delete connectionsHi Mvied,
Can you notify us in this thread when there will be a solution for this issues? And what to do from our side to implement it.
Thanks a lot for your work!Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Can't delete connectionsHi scribu,
I have the same problem with deleting connected posts but only with one specific conection type. I have a day post type and connected to day are events and clsses. Classes I can add and delete without any problem but Events connections are not being deleted.
p2p_register_connection_type( array( 'name' => 'day_to_events', 'from' => 'day', 'to' => 'events', 'reciprocal' => true, 'sortable' => 'order', 'context' => 'advanced', 'title' => array( 'from' => 'Add Events to this day', 'to' => 'Add to Schedule' ), 'fields' => array() )); p2p_register_connection_type( array( 'name' => 'days_to_classes', 'from' => 'day', 'to' => 'competition', 'reciprocal' => true, 'sortable' => 'order', 'context' => 'advanced', 'title' => array( 'from' => 'Add Classes to this day', 'to' => 'Add to Schedule' ), 'fields' => array() ));All other connections I have throughout the site are working fine. Just the day_to_events one doesn’t work on deleting the connection.
Firebug console gave me this: http://d.pr/Jm8Any ideas?
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] upgrade problem from 1.0.1 to 1.1.5ok, I’ll try that. thanks!
I found by p2p_to and p2p_from fields in db that indeed myrider_to_rankingconnections were namedclass_to_riderand myclass_to_eventconnections —rider_to_eventForum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] upgrade problem from 1.0.1 to 1.1.5You were right, the connections didn’t disappear after upgrade, but somehow merged with other connections.
I checked again and I found actually two connection types that “disappeared” from db, and they arerider to rankingandclass to event.
Rider to ranking connection isfrom rider to rankingand reciprocal, same asfrom class to event. I used to connect riders to ranking from ranking post type. And I mostly connected riders to ranking from ranking page and the same class to event from event post type. Could that be an issue? That the connection type is set asfrom rider to rankingandfrom class to eventbut were written to db asfrom ranking id to rider idandfrom event id to class id?Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] upgrade problem from 1.0.1 to 1.1.5they don’t exist in database any more
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] upgrade problem from 1.0.1 to 1.1.5Thanks scribu, I read that thread after I upgraded to 1.1.5
I found my auto generated connection hash through$my_connection_type->nameand found all connected posts in db except the rider_to_ranking connections. So then I used my backed up db on another wp install and added the connection name to the call function before upgrade, all the connections hash names were exactly as I specified, but no entries from rider_to_ranking connections.considering I have around 300 connected riders to different ranking lists, it would be nice to keep them and not re-enter again =/
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] upgrade problem from 1.0.1 to 1.1.5https://gist.github.com/8627c07691476c6b6a32
here you can see the riders to classes and riders to ranking connections. first one was ok, but the ranking one disappeared after upgrade (the connected items, not the connection itself).
no, none of other plugins are used.
Went back to version 2.1.4..works fine
Looking forward to see if the problem with 3.0 will be solved.
Thanks for a great plug-in!Naoise, I have the same problem. How did you solve it?
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Ordering connected postsThen, you would have to do some SQL hacking to make use of that custom ‘order’ field.
Scribu, can you help with the example of that, please?
If there’s p2p meta_key = “order” and values “1”, “2”..etc. how would you connect posts with p2pmeta table? custom SQL query with inner join?Forum: Plugins
In reply to: [Posts 2 Posts] add action on p2p_get_connectedthat’s a very valid point 🙂
I didn’t realize all the features. This plugin is awesome!
One more question then, I was searching but couldn’t find – where can I change position of metabox fromsidetonormal?Forum: Plugins
In reply to: [Posts 2 Posts] Multisite version of WPperfect! thanks!!
I have one more question, but I will post it separately 🙂Forum: Plugins
In reply to: [Posts 2 Posts] Multisite version of WPthis might help!
I have a WP network thus all my blogs have prefix: wp_(blog id)_tablename. So here is the MySQL query I get when I look for connected artists:
SELECT SQL_CALC_FOUND_ROWS wp_9_posts.*, wp_9_p2p.* FROM wp_9_posts INNER JOIN wp_9_p2p WHERE 1=1 AND wp_9_posts.post_type
When I look in the DB, there’s onlywp_p2pandwp_p2pmetatables.Forum: Plugins
In reply to: [Posts 2 Posts] Multisite version of WPThanks for a quick answer!
yes, plugin version is 0.7 network activated. adding connections through the metabox that appeared in the post edit/add admin after I registered a connection: http://d.pr/Dwx1
But after I hit “update” post or refresh page the event is gone from the list of added connections.In the admin, you will have to pass the exact post ID that you want. It’s up to you to figure out how to get that ID. $GLOBALS[‘post’]->ID might work.
Yes, I used
$_GET['post']but I put it insideget_queried_object_id()and that was a mistake I guess.Is this a correct usage:
`$connected = new WP_Query( array(
‘post_type’ => ‘artist’,
‘connected_to’ => $_GET[‘post’]
) );`
Now the list is empty, and I think it’s correct as no connection has been saved in the DB.Thank you again for your help. I’m developing in a tight deadline so your help is greatly appreciated!
I get this alert message when I go to the settings panel of the plugin and then it just never loads for editing.
I worked with this plugin with 2.9. version of WP and really like it.
Would be awesome to be able to use it with WP 3!
Can you tell what problem could that be?