I created a Post Object field type (see attached screenshot post-object-0.png)
How do I output the instructors in order by the selection choices made by the users (see attached screenshot post-object.png)
My query is as follow:
$instructors = get_sub_field( 'instructors');
//var_dump( $instructors );
$total = count($instructors);
$posts = get_posts(array(
'post_type' => 'kgi_personnel',
'posts_per_page' => $total,
'post_status' => 'publish',
'include' => $instructors
));
Thank you in advance,
get_sub_field()
call and it will be in the order they selected.