[Plugin: Posts 2 Posts] Connections lost after update tp 1.4.2
-
just a little feedback on your latest plugin update that broke my connections.
maybe my connection type is wrong?
p2p_register_connection_type( array( 'name' => 'CONNECTION', 'from' => 'product', 'from_query_vars' => array( 'product_cat' => 'CAT1' ), 'to' => 'product', 'to_query_vars' => array( 'product_cat' => 'CAT2' ), 'fields' => array( 'standard' => array( 'title' => 'Standard', 'type' => 'checkbox' ), ), 'title' => 'TITLE', 'sortable' => 'any', 'admin_box' => 'from' ) );to retrieve the connections i use:
function get_options($base_id, $connection_type){ $options = get_posts( array( 'connected_type' => $connection_type, 'connected_items' => intval($base_id), 'nopaging' => true, 'suppress_filters' => false, 'orderby' => 'title', 'order' => 'ASC' ) ); return $options; }Thanks for this great plugin!
http://ww.wp.xz.cn/extend/plugins/posts-to-posts/
[Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘[Plugin: Posts 2 Posts] Connections lost after update tp 1.4.2’ is closed to new replies.