array('post'),
'post__in' => $medical_care_slide_pages,
'ignore_sticky_posts' => true, // Exclude sticky posts by default
);
// Check if specific posts are selected
if (empty($medical_care_slide_pages) && is_sticky()) {
$medical_care_slide_args['post__in'] = get_option('sticky_posts');
}
$medical_care_query = new WP_Query( $medical_care_slide_args );
if ( $medical_care_query->have_posts() ) :
$i = 1;
?>
have_posts() ) : $medical_care_query->the_post(); ?>
>