[Plugin: Posts 2 Posts] Show connected subposts of connected posts as submenu items and other proble
-
Hi there,
I am using your plugin, and absolutely loving it.
However, I have come across a couple of stumbling blocks.1) I cant seem to sort the connected posts. I have tried many different things, but nothing sorts them.
Well, except having'connected_orderby'
in the query, but even this does not actually sort it in the order requested, it just changes it to something else.$connected = new WP_Query( array( 'connected_type' => 'services_to_industries', 'connected_items' => get_queried_object(), 'nopaging' => true, 'connected_orderby' => 'title', 'connected_order' => 'ASC', ) );
I want to be able to sort alphabetically or whatever, using wp_query arguments, rather than have to go into the post edit UI and rearrange the order there.
I have tried the get_posts function, with various arguments, and that just results in the entire post not showing up at all, and I don’t think it’s my syntax – I’ve triple checked it and my editor usually flags things like that.
2) Is there a way that I can get the output to be more like the output of a wp_list_pages() – ie, with connected subposts of connected posts as menu subitems. Or is there a way to pass the array of connected items into wp_list_pages() as an argument and let that do the work?
3) I need to display a list of connected items, with those that are connected to a certain different post at the top of the list. This comes back slightly to the sorting issue above. Is it possible to sort by connections, or to display only those connections of the current post that are connected to a specific other?
Any help would be much appreciated ??
Thanks
- The topic ‘[Plugin: Posts 2 Posts] Show connected subposts of connected posts as submenu items and other proble’ is closed to new replies.