Newbie here.
How do I change my query so it includes only one post but excludes an array of categories?
Here's what I have but I need to change the category from 3 to a bunch of categories (and new ones which have not been created yet) so I figured the easiest way is to just exclude the ones I don't want with an array.
<?php $recent = new WP_Query("cat=3&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
I found an array but it does not specify showing only one post.
Many thanks!