Phone: 815-857-3625 ext. 9001
Email: loans@fnbamboy.com
108 N. Elm St., Franklin Grove, IL 61031
$connected_staff = new WP_Query(array(
'connected_type' => 'staff_to_page',
'connected_items' => get_the_id(),
'post_per_page' => 1,
'nopaging' => true,
));
if($connected_staff->have_posts()){ ?>
while ($connected_staff->have_posts()) : $connected_staff->the_post();
$the_id = get_the_id(); ?>
endwhile;
wp_reset_query();
}
?>