array('post','page'), 'post__in' => $construction_firm_post, 'ignore_sticky_posts' => true, // Exclude sticky posts by default ); // Check if specific posts are selected if (empty($construction_firm_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() ) : $construction_firm_s = 1; ?> have_posts() ) : $building_construction_lite_query->the_post(); ?>


array('page'), 'post__in' => $construction_firm_about_page ); $building_construction_lite_query = new WP_Query( $building_construction_lite_args ); if ( $building_construction_lite_query->have_posts() ) : ?> have_posts() ) : $building_construction_lite_query->the_post(); ?>

esc_html($building_construction_lite_project_category ,'construction-firm'), 'posts_per_page' => get_theme_mod('construction_firm_project_count'), 'order' => 'DESC' ); // Adjust ordering based on user selection if ($construction_firm_project_order == 'ascending') { $construction_firm_args['order'] = 'ASC'; } else if ($construction_firm_project_order == 'a-to-z') { $construction_firm_args['orderby'] = 'title'; $construction_firm_args['order'] = 'ASC'; } else if ($construction_firm_project_order == 'z-to-a') { $construction_firm_args['orderby'] = 'title'; $construction_firm_args['order'] = 'DESC'; } $building_construction_lite_page_query = new WP_Query($construction_firm_args);?> have_posts() ) : $building_construction_lite_page_query->the_post(); ?>

>