You just need to set the operator
parameter to 'NOT IN'
(see Codex on tax queries).
Untested, but for your purposes:
$args = array(
'post_type'=> 'post',
'post_status' => 'publish',
'order' => 'DESC',
'tax_query' => array(
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => array( 'post-format-aside' ),
'operator' => 'NOT IN'
)
)
);
Related Posts:
- Exclude Current Post from Recent Posts Loop
- How to query posts to include specific pages of one post type, and all pages of another post type?
- Next Posts Prev Posts for Standard post format only
- How to get all posts in gallery post format template
- How do I get posts by multiple post ID’s?
- What does setup_postdata ($post ) do?
- Query for custom post type? [closed]
- Why get_posts are only showing five posts (retrieved by assigning a category to them?
- Is it necessary to reset the query after using get_posts()?
- Alternative to get_posts() due to multithreading cache crash
- How to get current post ID in quick edit callback
- How to restore deleted pages/posts?
- get comments and get posts in loop
- How do you get posts by meta_query using the JSON API plugin?
- Why favour the standard WP loop over iterating over (new WP_Query())->get_posts()?
- Retrieving 3 latest post from each of 5 different custom post types
- get_posts not honoring post_status
- get_posts cannot grab from specific category
- get_posts() seemingly ignoring post_type
- Serialized array, grab specific posts with meta_key/meta_value[0]->is_featured
- How do I combine these 2 queries
- get_posts gives different result than wpdb->get_results
- Trouble using get_post
- Cache Get_posts
- Is get_posts() more efficient than The Loop?
- How do I exclude posts by custom field value?
- Exclude custom taxonomy tag from loop
- Post Format single-loop.php using get_template_part
- `get_posts()` ignore my custom post
- Filtering post-formats from the loop using new WP-Query();
- I don’t arrive to do order_by title when i have a conditionnal year in a request
- get_posts that match a user-specified value on a page
- What is the maximum number of posts a WordPress loop can work with?
- How do I restart my loop with get_next_post()?
- Query Posts Exclude Entire Category
- Meta query: get posts with value in a multidimensional array
- Sort posts by most recently modified
- Better way to list links with different meta values using same meta key?
- A smarter way to display multiple loops inside a page template
- Excluding pages in WP_query using ACF
- Pagination with an array of post objects?
- Conflict with get_posts and the_content
- How to get the post content from a category on my homepage
- get_posts() not working in functions.php
- Show all posts using the template page and the loop?
- How do I paginate a get_posts() request inside another page loop (Paginating childpages)
- Get all pages and posts with get_pages() or get_posts()
- Display post details by post ID
- What is the p parameter in a get_posts() parameter array?
- Both a page loop and posts loop on the same page
- How to get The Loop working with $wpdb->get_results()
- Multiple get_posts() queries on one page
- Inserting post content into pages when using custom taxonomies
- Best choice for multiple loop in page?
- Query get_posts by level depth
- How to use WordPress Conditional Tags in get_posts foreach loop
- Get post offset/posts page offset in single post page (outside the loop)
- Exclude taxonomy term from all loops, but having it on widget
- How do I remove a category from a wordpress loop>
- How to Make infinite loop of post
- Hide gravity forms
- get_posts returns all posts
- WordPress Random post (last 3 days posts)
- Cron task firing but function not working
- wp json api – get posts by category
- Get all posts with a certain meta key, except for one with specific title
- Have posts that belong to multiple categories, exclude some categories from homepage
- Exclude category from get_the_category
- Can’t get Category link inside get_posts
- List all pages including archive
- Yet another get_posts() in explicitly defined order problem
- Video post format, extra content breaks video embed
- List random posts on single page in the current category
- Paging result of get_posts in function
- php loop error for count posts in category
- Foreach Loop Of Post Types With Nested If Else If Not Completing Process
- Only Show Excerpt After First 3 Posts
- get_posts returning empty array
- Update all WordPress posts’s title and content then display them in a table
- get_posts – check if custom field has content?
- Why does ‘meta_key’ return an empty array in get_pages
- Return only one post format in index.php [duplicate]
- Displaying Category in sidebar post widget but not in the loop on home
- Get number of posts in each category since last visit
- Create a hierarchical loop at predefined markup requirements
- Post Format problem
- How to Retrieve Post ID of another page
- WordPress – List Sub Categories and Sub-Sub Categories, With Posts
- Both WP_Query and get_posts returning 1 post
- An archive page without post format (just standard post)
- How to create content automatically when a post is published?
- get_posts and wp_autop (remove filter)
- How to show only 1 post from a specific category on the front-page
- Transient Loop Not working as expected
- Displaying posts on Homepage
- How to create a custom loop ordered by Categories on a Page Template?
- tax_query not working properly with get_posts
- show custom post’s post in two different divs [duplicate]
- get posts based on category and post meta
- How to show only text from post in WordPress