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