Use post__not_in
in your query.
$query = new WP_Query(array('post_type' => 'sculptures', 'post__not_in' => array($currentID), 'artist' => get_the_term_list( $post->taxonomies, 'artist' )));
Related Posts:
- How to get all taxonomies of a post type?
- Renaming Custom Post Types and Taxonomies
- get_terms by custom post type
- Saving Taxonomy Terms
- Get Posts by Custom Post Type ,Taxonomy, and Term
- Custom Taxonomy as checkbox or dropdown
- Taxonomy: Why ‘with_front’ => false DOES NOT WORK?
- How to change permalink structure for custom post type and it’s taxonomies?
- Get the first post term
- How do I append multiple taxonomies to the URL?
- Custom Taxonomy as Dropdown in admin
- Custom Post Type Archives by Date and Taxonomy
- Creating “static” taxonomies to choose from, inside custom post type?
- How do I dynamically populate wp_nav_menu from a custom taxonomy?
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- How to completely disable a taxonomy archive on the frontend?
- How to limit the number of terms (terms acts like categories)
- Taxonomy count per Post type
- Custom Post Type – Taxonomy Dropdown Menu?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Taxonomy term in permalink
- How do I display two separate taxonomy archives for two post types that share a single taxonomy?
- Custom taxonomy not showing up when adding a new custom post type
- How do I list custom taxonomy terms without the links?
- How to list custom taxonomy categories?
- Custom Taxonomy Template Post List with Sort Order
- Query Custom Post Type taxonomy type based on page
- wp_insert_term doesn’t work with custom post type’s taxonomy
- How to list all categories and tags in a page?
- show tags of custom post type ONLY
- Taxonomy + post_type
- Remove quick edit for custom post type
- Using 1 taxonomy for multiple post types?
- Count posts that have specific taxonomy term attached
- Retrieve single term slug
- Taxonomy archives based on Custom Post Type
- Filtering Posts by Multiple Taxonomy Terms such as in an Admin Post Listing?
- Disable Single Post View for Specific Taxonomy on Custom Post Type
- Order Posts by Taxonomy and Meta Value
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- Create an archive page for custom taxonomies
- Get the ‘slug’ of a custom taxonomy
- Taxonomy page returns 404 page not found
- How to sort list of custom posts to get view like a tree of posts under categories and their children’s categories?
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- It is possible to get a list of post types asociated to a taxonomy?
- display multiple term post from taxonomy in a single page
- How would I leverage custom Taxonomies in this scenario?
- List taxonomies with thumbnails
- How can you make permalink work for custom post type and taxonomy?
- Custom Metabox with Taxonomy Dropdown – Saving Issue
- How to get a list of term names of the custom post type im currently on in single.php
- How to show term-specific post list, without posts associated with child terms?
- Group list of posts by taxonomy and allow for pagination
- Custom Post Type with Custom Title
- How to make an admin create/edit post page to look like taxonomy page?
- Looping taxonomy in taxonomy?
- Author template – separate custom post type by custom taxonomy term for $curauth
- Custom Post Type order Title ASC
- Custom posts and custom taxonomies for many products and categories?
- custom post type tags
- Structure of custom post type / taxonomy?
- get_the_term_list() wanting to loop through the returned values
- List custom taxonomy terms
- Displaying child taxonomies
- How do i get the taxonomy term name on the CPT archive page?
- Single and Archive Pages with Custom Post Type
- Query multiple post of which one by taxonomy
- Echo post count of CPT with current taxonomy
- Sharing a custom taxonomy – No posts?
- See the process of creating a taxonomy and tell me where I made a mistake
- Display associated taxonomy child name on single CPT page
- show only one category posts in admin
- Issue On Listing Woocommerce Parent Tag List
- Get all active posts that are tied to a custom taxonomy for a custom post type
- How to add to taxonomies to a post type
- Filtering custom post types using category taxonomy
- Is there a function that replace category name with a icon?
- Taxonomy listing issue – does not display how I would like
- Show custom category archive as front page and remove taxonomy slug from urls
- Is it possible for post and custom post type to share a category base slug?
- custom taxonomy not return in the code
- How do I get parameters from the URL?
- How can I rename custom taxonomy if multiple custom post type have the same taxonomy name?
- Taxonomy Archive URL + Template
- Show only taxonomy types terms associated with a custom post type in WordPress PHP
- Passing total post count to javascript
- Taxonomy term archive claims there are no posts, but there are. How to resolve?
- Get a custom post type’s taxonomy type term names displayed as checkboxes and filter
- Category display using conditions
- How to display posts from home page in blogs in category wise
- Separate archive template to show posts and CPT by same category/taxonomy
- How to get taxonomy category in permalink for each taxonomy OR How to give a parent page to a given taxonomy?
- How to list custom taxonomy terms without the hyperlinks?
- One custom taxonomy with unique sets of labels for two post types?
- How to Filter the Custom term loop based on dropdown
- How to change default taxonomy for CPT only (not posts)
- Add taxonomy or category slug to custom post types URL
- How to determ a custom post type url?
- Custom Taxonomy archive with url parameters