'meta_key' => 'post_delete',
'meta_value' => '0'
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/loop', get_post_format() ? : 'video' );
endwhile;
else :
.....
endif;
$newsLoop = new WP_Query(array(
'posts_per_page' => 10,
'post_type' => 'post',
'orderby' => 'date',
'order' => 'DESC',
'meta_query' => array(
array(
'key' => 'post_delete',
'value' => '0',
'compare' => 'LIKE',
)
),
));
if ( $newsLoop->have_posts() ) : ?>
<div class="news-wrapper">
<?php while ( $newsLoop->have_posts() ) : $newsLoop->the_post();
$post_delete = get_post_meta( $post->ID, 'post_delete' );
?>
<?php if ( !$post_delete ): ?>
<?php get_template_part( 'template-parts/loop', get_post_format() ? : 'video' ); ?>
<?php endif ?>
<?php endwhile;?>
</div>
<?php endif; wp_reset_query(); ?>