5,
'post__not_in' => get_option('sticky_posts'),
'post_type' => array(
'post'
),
);
if ( $newscard_settings['newscard_banner_slider_latest_post'] == 'category' ) {
$post_type_bs['category__in'] = $newscard_bs_cat;
}
$newscard_get_banner_slider = new WP_Query($post_type_bs); ?>
2,
'post__not_in' => get_option('sticky_posts'),
'post_type' => array(
'post'
),
);
if ( $newscard_settings['newscard_banner_featured_posts_2_latest_post'] == 'category' ) {
$post_type_fp_2['category__in'] = $newscard_fp_2_cat;
}
$newscard_get_featured_post_2 = new WP_Query($post_type_fp_2); ?>
4,
'post__not_in' => get_option('sticky_posts'),
'post_type' => array(
'post'
),
);
if ( $newscard_settings['newscard_header_featured_latest_post'] == 'category' ) {
$header_post_type['category__in'] = $header_newscard_cat;
}
$header_newscard_get_featured_post = new WP_Query($header_post_type); ?>
2,
'post__not_in' => get_option('sticky_posts'),
'post_type' => array(
'post'
),
);
if ( $newscard_settings['newscard_banner_featured_posts_1_latest_post'] == 'category' ) {
$post_type_fp_1['category__in'] = $newscard_fp_1_cat;
}
$newscard_get_featured_post_1 = new WP_Query($post_type_fp_1); ?>
have_posts()) {
$newscard_get_featured_post_1->the_post(); ?>
have_posts()) {
$newscard_get_featured_post_2->the_post(); ?>