$args = array( 'numberposts' => 1, 'cat' => -6 );
The code is correct.
Yesterday when I wrote this code, maybe I must have been sleeping 😛
Thank you!
Hi all.
Thank you for your answer.
Ops, the code is wrong in the post, but in the file it is correct, I tried
$args = array( 'numberposts' => 1, 'cat' => -6 );
and
$args = array( 'numberposts' => 1, 'cat' => '-6' );
but these solutions don’t work
🙁