I found an answer to my own question:
If I use the tax_query
arg then I could specify 'operator' => 'NOT IN'
like so:
$events = tribe_get_events([
'tax_query' => array(
array(
'taxonomy' => 'post_tag',
'field' => 'name',
'terms' => $current_tag,
'operator' => 'NOT IN' // HERE
)
),
'start_date' => 'now',
'eventDisplay' => 'list',
'posts_per_page' => 3,
]);
Related Posts:
- Some doubts about how the main query and the custom query works in this custom theme?
- WP_Query vs get_posts
- Order posts by ID in the given order
- Get the number of posts from the current page results
- Executing Queries in tag.php
- WordPress Custom Query to show posts from last x years
- How to order posts tag by tag?
- Query Custom Meta Value with Increment
- Loop through all tags & output posts in alphabetical list
- How to query ‘posts_per_page’ to display a different blog posts index template?
- 2 loops on page – one with orderby rand second orderby date
- Query posts by specific word on title
- Five posts from a category in footer
- How to build a WP_Query using mulitple tags and using AND or OR operator between them
- Multiple loops without repeating content
- WP_Query condition affects posts_per_page count
- Some doubts about how the main query and the custom query works in this custom theme?
- How do I rewrite this loop as a new WP_Query style-loop?
- Include current post into loop
- How to provide meta_key array to wp_query?
- get_posts output always same post
- How to create custom query by keyword in post title?
- How to make posts unqueryable/unpublish posts where ACF relationship field is an unpublished post? [closed]
- Conditional operator OR not working with custom fields
- Should I reset $wp_query?
- Creating attachments archive in tags and categories
- 2 queries with counters
- Get posts with no tags?
- Paginate pages with dynamic query
- Performance concerns: index.php vs taxonomy-$taxonomy.php
- Determine if ID is page or post and query the ID
- Custom template for password protected page
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- Filter products on category AND tag
- Duplice post with standard WP loop – fixed by using query_posts() instead
- How do I stop the same post showing multiple times in a archive?
- Get posts that match defined arrays of tags
- Custom query for custom post type not getting correct post ID
- Problem with my loops
- WordPress For Loop Prints Unwanted Extra Paragraph Element
- How to order posts, that have already been filtered by custom taxonomy, by their category names?
- How to add in WP_Query to every 3 posts displayed? [duplicate]
- query_posts() doesn’t seem to be called in my page
- Some doubts about how the main query and the custom query works in this custom theme?
- Ordering Posts by parent category, name ascending
- Converting an existing query_posts to WP_Query
- Multiple loop for “featured” items returns wrong posts
- Can’t seem to get an else statement correct? [closed]
- Show number of posts AND number on current page (cannot make it work)
- Multiple WP_Query loops with Pagination
- WP_Query and next_posts_link
- Using OR conditions in meta_query for query_posts argument
- Too slow when using both ‘tax_query’ and ‘meta_query’ both in WP_Query
- How can I save an array from a random post sequence for later use?
- How to order category.php loop by ‘meta_value’?
- Order posts by tags count?
- Move posts to top of WP_Query if in certain Taxonomy?
- Display different number of posts from one category on the different pages
- Pagination not working Search posts
- How do you query wordpress posts using a math formula between multiple meta field values?
- Get List of all the Authors
- How would I get 1 latest post from a query for 5 posts?
- WP_Query loop within WP_Query loop
- Custom category search box for WordPress
- How to pass many ids in post__in?
- Sub-loop / nested loops Best Practices
- Show Sticky Post at the top but do not show again in the loop?
- Any number in meta key (wp query)
- How do I run through a WordPress loop called from a filter function?
- How do I get the title of a category in a custom loop?
- Blog post per page setting conflicting with custom WP_Query?
- Out Of memory issue on post per page parameter
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- Order by most used tag
- Exclude All Posts Which Do Not Have A Tag Assigned
- Assign custom parameter to each post in query
- How to get posts published on the latest date?
- complex get_posts() query to select child pages
- posts archive page – closing WP_Query loop correctly [closed]
- AJAX Breaking Offset Argument In WP Query
- Loop posts based on permalink term
- WP_Query: Show 10 posts in date order, first three random
- Does putting queries within loops cause an issue on WordPress?
- Get next/prev image/attachment in time with date query
- Function using get_posts() with tax_query not working when called from functions.php
- Why doesn’t my WP Meta Query return any results?
- Custom Post Type Query W/Category Dropdown
- How to make the ‘request’ filter work?
- Optimising WP_Query with ACF Fields
- getting posts by tags
- Fetching $_POST from Page Template into functions.php
- Optimising specific Query with ACF meta objects
- query_posts with sorting on a custom datestamp
- Next / previous posts link doesn’t show up with Posts 2 Posts
- Query Posts by date range with fixed beginning and end
- Carousel Loop only duplicating
- How to exclude certain portfolios from a loop
- How to show featured post first, then separate loop for other posts
- WP Query – Show custom posts only if user contain some user meta
- new WP_Query with order args – no more distinction between categories