anatol06
5/6/2018 - 4:14 PM

wp-get-all-posts-except-featured

Get posts except specified cathegory

<?php // Get all posts except Featured
    
    $no_featured_query = new WP_Query(array(
        'cat' => '-3',
    )); ?>

<?php  while($no_featured_query->have_posts()) : ?>
<?php $no_featured_query->the_post(); ?>

<!-- HTML here-->

<?php endif; ?>