The arguments you are using are wrong. They should be:
$args = array(
'numberposts' => '10',
'post_type' => 'post',
'post_status' =>'publish',
'tax_query' => array(
'taxonomy' => 'category',
'field' => 'id',
'terms' => array( 10, 11, 57 ),
'operator' => 'NOT IN',
)
);
Or shorter:
$args = array(
'numberposts' => '10',
'post_type' => 'post',
'post_status' => 'publish',
'category__not_in' => array( 10, 11, 57 )
);
Related Posts:
- Can’t schedule post for another time
- Get publish post link?
- How to add custom status to quick edit
- Force Publish Future (Scheduled) Posts Immediately [duplicate]
- Visual Studio SignTool.exe Not Found
- How can I set a draft page as parent without publishing?
- Display a post’s publish date from 2112
- Does blocking xmlrpc.php affect pinging update services like pingomatic
- I can’t preview post’s change once they are published
- How to change post status in hook?
- Publish post when edit post form submitted with enter/return pressed on keyboard
- featuring old articles without messing up with the archive
- Hiding by default specific post status on backend list?
- How to make scheduled post preview visible to anyone?
- Scheduled Posts and wp-cron – Why don’t scheduled posts publish if too old?
- Why does publish_{custom-post-type} fire on update?
- Is there a way to know if a post has been published through XML-RPC?
- How to unpublish a page and still keep a draft?
- get_terms on save_post hook
- Save and Publish button not working after installing SSL
- What differences are there between a Privately Published post and a Draft post?
- Disable “preview changes” button
- Can we have private drafts?
- Update post meta on bulk edit / update
- Custom post type suppress transition from future to publish
- publish_post called too early
- Custom save button shows ‘Are you sure you want to…’ dialog
- Controlled publishing in WordPress
- Change the text of the publish button to Save
- Do action for only switch status for publish_post
- problem with publish date not always appearing [duplicate]
- Update status of all posts in a category
- What is happening to make my Update/Publish button disabled?
- Ajax function on #publish only saves as draft – how to make it publish?
- What is the reason for the new_to_publish hook not working?
- After I publish a post where does it go
- Sort / display recent posts by publish date
- Should you manually ping new WordPress posts?
- Authors should not publish
- I need to modify drafts using custom data from database and then publish it
- How to show or hide a post based on meta_value selection?
- i am making text changes on my page show in preview not on live site, why? [closed]
- Is WordPress “publish” atomic?
- How to move post process to background
- How does redirect work when publish date changes and date in url changes?
- How to set a Post’s default visibility to ‘Private’ in Gutenberg?
- Gutenberg publish date datepicker
- If click on Save/Publish change Post Status to Pending Review instead Publish
- How publish post from pending status
- How Google Indexer should only index published pages
- Publish and go to page [duplicate]
- Publish Post Action Not Working
- Is it normal for a scheduled post to say “Missed Schedule”
- Manage multiple wordpress installs (Best Practice)
- Showing the next post’s title, even if it’s an unpublished post
- Can’t publish posts, Jetpack won’t connect, empty notification emails to my inbox [closed]
- I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish
- Duplicate post on publish
- How is it possible to use a very reduced version of WordPress?
- Problems in updating a self-developed plugin
- Why doesn’t wp_update_post() update the post_status field?
- How to call a REST endpoint when a post is published?
- WP_Query by post ID doesn’t work if post is in custom post_status
- Querying post from a multisite network
- Publish pending article from front end with a button?
- Restrict the Number of Posts an Author can Publish (over time)?
- Modifying recent post widget to include icons for post titles
- Automatically move pending posts after 30 days and, update the post date, when users update the posts
- Unpublish all posts in a category
- Get images only if parent status is publish
- Posts created in a Custom Post Type are lost if published without a title
- How can I automatically set a post slug based on the post title during post publish?
- Auto-generated posts not showing in backend (but being counted!)
- Change sticky status of posts from phpMyAdmin
- the_excerpt not showing posts
- Save author posts as in pending review – block users updating their posts
- Print a message if excerpt is empty after posts have been publish/update!
- Excluding a category from wp_query breaks recent post widget
- Check if checkbox is marked on publish/update post
- Force Custom Post Type Status to ‘Future’ on first Save or Publish
- Workflow for attachments in WordPress
- WordPress action hooks related to scheduled posts not Fired
- link to single most recent post, regardless of category
- Most recent post is missing from Author page
- Stop wordpress from creating empty/null entries
- 2 column recent post query not respecting float right [closed]
- Function added to hook “new_to_publish” not executing – custom plugin
- Offset Loop by 1 , Limit next loop to 1 (Most Recent) Post
- Show latest posts on responsive theme
- Change status of page after an event (Looking for best practice advice)
- WordPress doesn’t save or publish new posts
- Cannot access wp-admin after migration to another place
- Sql Update CPT from publish to draft and particular custom field
- Let user publish posts on community page
- Add new post using a page inside the website
- Autoblog posts in wpms(network) into main site including featured images
- Have latest post and recent posts display differently
- Do something when user creates post (that’s pending)
- Problems when writing a post
- transition_post_status hook, works – but not if the post is new