Firstly, your tax query is a little jumbled. The first nested array should actually be at the ‘root’ of your query_posts() argument, with tax_query as a key among them;
array(
'post_type' => 'review',
'post_status' => 'publish',
'posts_per_page' => 10,
'tax_query' => array(
'relation' => 'AND',
array(
'taxonomy' => 'reviewcats',
'terms' => array( 'featured' ),
'field' => 'slug',
'operator' => 'NOT IN',
)
)
);
However, forgive me if I’m mistaken, but I think your query could be a lot simpler – simply exclude the ‘featured’ review you’ve just grabbed;
query_posts( array(
'post_type' => 'review',
'post_status' => 'publish',
'post__not_in' => array( $post->ID ) // $post *should* be the featured review, since it was the last post queried/worked on
) );
Related Posts:
- Get terms by taxonomy AND post_type
- Get Posts by Custom Post Type ,Taxonomy, and Term
- Get The Post Type A Taxonomy Is Attached To
- Display current taxonomy term when inside custom post type
- Get term slug of current post
- How to limit the number of terms (terms acts like categories)
- How do I list custom taxonomy terms without the links?
- query multiple taxonomies
- wp_set_object_terms() is not replacing term, but creating a new one
- Get terms that contain posts that in turn belong to other terms?
- wp_insert_term doesn’t work with custom post type’s taxonomy
- wp_get_object_terms(): count relative to passed IDs?
- Custom Post Type Archive Template
- Maintaining strict one-to-one association between terms and custom posts
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- If on term-page -> get the current term?
- Sort the main query in subcategories/terms?
- Get list of terms of current taxonomy archive for another taxonomy
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- Get all taxonomies for all post types
- Dynamically create/remove terms in taxonomy when custom post type is published/trashed
- How to get the first term for the current taxonomy?
- How do I provide a “show all posts” link in a paginated term archive?
- How to filter the taxonomy terms based on another taxonomy term
- How to output wordpress custom tags separated by comma?
- get_the_terms return only last term
- Does WordPress limit the length of slug names for Post Meta or Terms?
- get_post_meta returns empty array for terms
- Custom Post Type Archive Page Filtering
- Filtering WP_Query Dynamically on the Front-End
- Get posts by querying taxonomy and certain terms of the taxonomy?
- Show posts from two or more custom taxonomy terms
- Display post as term id
- Post count by month of taxonmy term
- How do I display the taxonomy for a custom post type in an array
- Display Custom Taxonomy Alphabetically
- Get terms that contain posts that in turn belong to other terms?
- How to get custom posts sub category link
- Custom while loop for hierarchical display of a taxonomy
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- Display taxonomy terms, child terms and posts in a template
- Use custom walker to add taxonomy terms to main nav menu
- Add term to custom post type on draft
- Listing all term items alphabetically / sorting loop
- How to get WordPress term attached to the Post?
- Get parent category id from child category page for custom taxonomy
- How to get only child terms from a custom taxonomy of current post type?
- How to Display Posts From Category Within a Custom Taxonomy?
- Custom Post Types Archives and Single Pages not showing custom taxonomy data
- Get terms of a post but only if they’re also the child of a specific term
- The Difference Between Categories and Tags and Taxonomies and Terms
- Get taxonomy term by slug in post on archive page
- How to display custom taxonomy term meta on custom post type
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- Commas not displaying in implode
- does wp_insert_term link the term to a certain post ID?
- Grab all Custom Posts by multiple taxonomies and terms
- Retrieve Custom Taxonomies with Description and Slug
- How to list posts by term (custom taxonomy)
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- How to display custom taxonomy term specific post?
- How to list posts by terms
- How to order taxonomy terms by most recent post?
- How to associate custom taxonomy terms with custom post type?
- get_queried_object not work in taxonomy page
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- get_the_terms child terms for current post/custom post only
- Get all posts for custom taxonomy term
- posts_per_page is not working by term
- Dropwdown: Get taxonomy terms from posts that share preselected terms from 3 other taxonomies
- Custom Post Type / Taxonomy / Term – what template to use to avoid 404-page?
- Pages of my taxonomy terms are showing all posts
- Display title of all custom posts from same taxonomy term on a custom post template
- wordpress does not see the correct custom taxonomy hierarchy
- Add active class to foundation 6 tabs while looping categories
- How to show terms used only for particular custom post type. Filter creation perpose
- Get category list & taxonomy list from different post type using post id?
- How to get all posts related to a taxonomy?
- Custom taxonomy- only output relevant terms
- Filter By Term Not Working – Custom Post Type
- WordPress add taxonomies/terms list as a menu in archive page
- Decrement term in for each
- Hide Custom Taxonomy title if not associated with another Custom Taxomony
- How to pass taxonomy terms to WP_Query along with $args?
- Custom Post Status & Taxonomies
- Fetch posts list from fist CPT taxonomy term and list under 2. CPT
- Prevent repetitive terms in get_the_term_list
- Get term_id for each instance of custom taxonomy
- List a custom taxonomy’s terms, with links, on the taxonomy page
- install.php Custom Taxonomy Term not being added to custom post
- List custom taxonomy terms
- Display associated taxonomy child name on single CPT page
- How to manage a bookstore
- Get all terms assigned to a post from different taxonomies
- Issue On Listing Woocommerce Parent Tag List
- How to use wp_set_object_terms depending on page ID?
- Taxonomy Archive URL + Template
- Is it possible to get_terms by taxonomy AND post_type?
- Is there a way to edit non-custom term attributes?