Phone: 815-857-3625 ext. 2129
Email: loans@fnbamboy.com
220 E. Main St., Amboy, IL 61310
$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();
}
?>