[Plugin: Posts 2 Posts] Single from and array of to(s)
-
Hi Scribu,
I have seen the documentation (thanks for that) and while trying to upgrade the funtion to the new way of doing things I’m running into a problem.
I have a single custom post type that relates to multiple other post types. If I do this:$my_connection_type = p2p_register_connection_type( array( 'from' => 'series', 'to' => array( 'post', 'page' ) 'sortable' => '_order' ) );I don’t get anything on an interface in the custom post.
Doing it the old fashion way:$my_connection_type = p2p_register_connection_type( array( 'from' => 'post', 'to' => 'series' 'sortable' => '_order' ) ); $my_connection_type = p2p_register_connection_type( array( 'from' => 'page', 'to' => 'series', 'sortable' => '_order' ) );Everything is ok.
The main reason for me to change was to get the new sortable functionality.
thanks in advance
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘[Plugin: Posts 2 Posts] Single from and array of to(s)’ is closed to new replies.