- This topic has 4 replies, 2 voices, and was last updated 5 months, 4 weeks ago by .
This worked prior to Meta Box AIO 1.14.1 and 1.14.2:
$connected = new WP_Query( [ 'relationship' => [ 'id' => 'podcasts_to_episodes', 'from' => get_the_ID(), // the ID of the podcast (a custom post type) ], 'orderby' => 'date', 'order' => 'DESC', 'paged' => $paged, 'post_status' => 'publish' ] );
I also tried
MB_Relationships_API::get_connectedbut it also yielded zero results.
Do I need to change anything about my code to support the latest version of MB Relationships?
- You must be logged in to reply to this topic.