get_settings_for_display(); $abcbiz_recent_number_of_posts = $this->get_settings('abcbiz_elementor_recent_posts_post_number')['size']; $abcbiz_post_date_switch = $abcbiz_settings['abcbiz_elementor_recent_posts_date_switch']; $abcbiz_post_comment_switch = $abcbiz_settings['abcbiz_elementor_recent_posts_comment_switch']; $abcbiz_post_read_more_switch = $abcbiz_settings['abcbiz_elementor_recent_posts_read_more_switch']; $abcbiz_post_read_more_text = $abcbiz_settings['abcbiz_elementor_recent_posts_read_more_text']; $abcbiz_selected_post_categories = $abcbiz_settings['abcbiz_elementor_recent_posts_post_category']; ?>
'post', 'paged' => $paged, 'posts_per_page' => $abcbiz_recent_number_of_posts, ); // specific category query if ($abcbiz_selected_post_categories && $abcbiz_selected_post_categories !== 'all') { $args['cat'] = $abcbiz_selected_post_categories; } $query = new WP_Query($args); if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); ?>