Last active
May 6, 2018 16:20
-
-
Save anatol06/0117f5fbe9437f50da625e16310cb3d3 to your computer and use it in GitHub Desktop.
Get posts except specified cathegory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment