How to display all posts not in a post_format
Using WP_Query() I want to display all posts -except- those with the 'image' post_format. I tried this, but it did not work.
$args = array(
'relation' = 'NOT',
'tax_query' = array(
array(
'taxonomy' = 'post_format',
'field' = 'slug',
'terms' = array('post-format-' . $post_format),
)
),
'paged' = get_query_var('paged')
);
query_posts( $args );
Topic post-formats wp-query Wordpress
Category Web