[Resolved] [Plugin: Posts 2 Posts] Connection Ordering
I having lots of trouble with connection ordering
To register the connection I use
global $carousel_connection; $carousel_connection = p2p_register_connection_type( array( 'to' => 'carouselcontent', 'from' => 'carousel', 'title' => array('to'=> 'Content','from'=> 'Carousel'), 'sortable' => '_order' ) ); add_action( 'init', 'carousel_connection', 100 );
Then on display I use
$carouselContent = new WP_Query( array( 'post_type' => 'carouselcontent', 'post_per_page' => -1,'connected' => $carouselToUse,'connected_orderby' => '_order', 'order' => 'DESC'));
Should this not work? I can drag and drop in the admin but the front end display ignores the order 🙁
- The topic ‘[Resolved] [Plugin: Posts 2 Posts] Connection Ordering’ is closed to new replies.