get_settings_for_display(); // blog info switcher $abcbiz_blog_date_switch = $abcbiz_settings['abcbiz_elementor_blog_date_switch'] ? $abcbiz_settings['abcbiz_elementor_blog_date_switch'] : ''; $abcbiz_blog_comment_switch = $abcbiz_settings['abcbiz_elementor_blog_comment_switch'] ? $abcbiz_settings['abcbiz_elementor_blog_comment_switch'] : ''; // blog readmore switcher $abcbiz_blog_readmore_switch = $abcbiz_settings['abcbiz_elementor_blog_read_more_switch'] ? $abcbiz_settings['abcbiz_elementor_blog_read_more_switch'] : ''; // "Read More Text" control $abcbiz_read_more_text = $this->get_settings('abcbiz_elementor_blog_read_more_text'); $abcbiz_selected_category_fancy = $abcbiz_settings['abcbiz_elementor_blog_category_fancy']; //post list count $abcbiz_blog_list_count = $abcbiz_settings['abcbiz_elementor_fancy_blog_blog_post_count'] ? $abcbiz_settings['abcbiz_elementor_fancy_blog_blog_post_count'] : '3'; ?>
'post', 'posts_per_page' => 1, // Number of posts to display 'ignore_sticky_posts' => 1 // skip the sticky post ); // specific category query if ($abcbiz_selected_category_fancy && $abcbiz_selected_category_fancy !== 'all') { $first_post_args['cat'] = $abcbiz_selected_category_fancy; } $first_post_query = new WP_Query($first_post_args); if ($first_post_query->have_posts()) : while ($first_post_query->have_posts()) : $first_post_query->the_post(); ?>
'post', 'posts_per_page' => $abcbiz_blog_list_count, // Number of posts to display 'offset' => 1, // Skip the first post 'ignore_sticky_posts' => 1 // skip the sticky post ); // specific category query if ($abcbiz_selected_category_fancy && $abcbiz_selected_category_fancy !== 'all') { $remaining_posts_args['cat'] = $abcbiz_selected_category_fancy; } $remaining_posts_query = new WP_Query($remaining_posts_args); if ($remaining_posts_query->have_posts()) : while ($remaining_posts_query->have_posts()) : $remaining_posts_query->the_post(); ?>