Found the answer so it can benefit someone else
$posts = get_posts(array(
'post_type' => 'exhibition',
'tax_query' => array(
array(
'taxonomy' => 'categories_for_exhibitions',
'field' => 'slug',
'terms' => 'current',
operator => 'NOT IN',
),
)
));
Related Posts:
- When to use add_action(‘init’) vs add_action(‘wp_enqueue_scripts’)
- Change admin bar to default:off
- How to add Color Picker in Theme Options for the following?
- Template for individual post designs
- Theme Review: post thumbnail, header image, content width
- How to determine if a category is empty?
- The seventh parameter passed to add_submenu_page()
- What would happen if the admin installs a plugin when the plugin is included in the theme?
- How do I get my child-theme to work with my theme’s includes folder?
- wp_insert_post breaks rewrite rules
- Where can I find a good reviewed collection of Twenty Ten child themes?
- Template Hierarchy for get_header()
- How to add (css) classes to only one wp_nav_menu()?
- Advantages of using instead of wp_enqueue_style()?
- Remove frameborder attribute from iframes
- How to add suggest plugin to theme?
- how do I get a sidebar’s id or number for use with is_active_sidebar()
- Looking for the code in twentyten that allows users to select images for the header/banner
- Relative Time On Posts
- Prevent update check for specific theme
- WordPress as a data intensive web app
- How to determine which custom header image is being shown
- using wordpress without javascript
- Theme Check: Could not find post_class
- Unhook jQuery from WooCommerce via `functions.php`? [closed]
- Override theme programmatically
- Set a static front-page as a landing page programmatically
- can’t understand _e function well
- WP 3.1 upgrade breaks AutoFocus+ theme
- Comment entry screen shows even though “Allow Comments” is unchecked
- How can I display/hide certain content based on a Theme Option field?
- Custom WordPress Theme – Search not working on posts
- How can I make that when I clic on one of the menu items, that page shows only posts with the same category?
- Change content layout based on menu hierarchy
- Theme Loading Into Dashboard
- How to make theme elements customizable in wordpress?
- Where to hook settings api init
- How to obtain a reference to the_excerpt() from custom loop
- defining a folder location in order to recall it
- How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?
- How can i attach the attachment-ID to the user profile image?
- JavaScript stops working on selectively refreshed sections one inside the other
- Why doesn’t my css work when I check my theme on mobile devices? [closed]
- Remove settings if theme is deleted?
- Common single page template options
- Custom Blocks as part of a theme
- How to set up diffrent mobile theme for single site in WordPress?
- Enqueued JavaScript is not working
- Derive child theme from separate theme
- How to change footer or for different kinds of users in wordpress?
- How to Download Minimum Requirement of WordPress (Not Themes )
- Create a child theme from multiple themes
- Show specific category posts on Genesis framework home page
- How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
- How to determine (via php) if site is using a static home page?
- How to fix : Uncaught ArgumentCountError: Too few arguments to function? [closed]
- I have WordPress setup on primary domain, how do I set it up on its subdomain using the same database?
- Theme development – Automatically menu creation
- How to enable Disqus comments in a WordPress theme I’m creating from scratch? [closed]
- tiny_mce_before_init: ‘exact’ => true has no effect
- pre_get_comments or the_content filter
- using part of a theme in another theme
- Pagination not working on custom post page
- What might cause a featured image not to display?
- How to set default values for edit_post_link() in my theme?
- Remove/Hide a Widget on a Custom Template
- Why is the `if else` not working?
- Creating an advanced searchform based on select boxes
- Setting thumbnail featured image size not working properly
- Why WordPress developer still using timthumb and what are advantages using them? [duplicate]
- finding menu hierachy > wp_get_nav_menu_items
- WordPress Shortcodes – Optional Styles
- I don’t think WordPress is loading jquery or bootstrap js
- Show popover with url and option to open in new window
- Is it possible to show sort page excerpt in search.php
- Custom pages with html in wordpress editor vs. writing it all directly in the php template files?
- Disabling wordpress added class
- Problem with pagination link (error 404)
- WordPress wp_get_current_user returning blank values until refresh
- use a single nonce in three different nonce field
- Whether an tag is required in header?
- Theme is Enqueueing Everything in Footer
- Local theme changes upload on server but theme changes not showing
- Media & Plugin screens stall
- wp_kses allow checkbox class and checked
- Is wp_mail plugin territory?
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- Understanding WordPress theme files and underscores
- New theme HTML5 Support for Search in WordPress 4.4
- How do I remove p tag *insertions*? Disabling `wpautop` removes manual tags
- Create a variable with string, array or multiple values
- What hook to use for loading a custom class extension during Theme initialization?
- What are these variables and where are they documented?
- Use external fonts in WordPress stylesheet
- Custom link color or stylesheets
- What is the advantage of using home.php over index.php for the front page
- How can i move my product name & price from below thumbnail to be the rollover content in Avada & Woocommerce?
- Add wrapper for a specific sub-menu
- Theme’s featured image option is not showing up
- Not Able to Access Terms Under Custom Taxonomy Archive