Your $args
array is incorrect. You used cat=-8
which is not correct here.
You will have to specify/exclude category this way 'cat' => -8
. So your $args
array will be
$args = array( 'posts_per_page' => 3, 'orderby' => DESC, 'cat' => -8 );
Your $args
array is incorrect. You used cat=-8
which is not correct here.
You will have to specify/exclude category this way 'cat' => -8
. So your $args
array will be
$args = array( 'posts_per_page' => 3, 'orderby' => DESC, 'cat' => -8 );