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