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:
- Custom Taxonomy as checkbox or dropdown
- Taxonomy: Why ‘with_front’ => false DOES NOT WORK?
- Custom Taxonomy as Dropdown in admin
- Retrieve single term slug
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- List taxonomies with thumbnails
- Query multiple taxonomy in Custom Post Type
- Custom Post Type: How to display all of same taxonomy?
- Remove “-2” from a Toolset Types URL with the same post name
- List all custom post type posts from a given category?
- Custom Post type taxonomy single templates
- Listing taxonomies from custom post type
- Custom post type with specific category structure
- Permalinks for Taxonomy and Custom Post Type
- Custom Post Type and Taxonomy combination
- Exclude specific taxonomy term when using wp_get_post_terms
- Get Post Primary Category
- How to check the terms in single custom post type template
- How can I move a custom taxonomy and its data from one post type to another?
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- Change or update WordPress loop based on dropdown selection
- Custom Taxonomies not appearing in Admin
- Custom Post Type Set Comments ON by default without show METABOX
- How do I do this with WordPress? Taxonomies?
- Can taxonomies of custom post types be used with category actions?
- Limit amount of posts made within a custom taxonomy
- Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish
- Set a CPT slug as a base name for all the taxonomies
- WordPress Doesn’t Generate Taxonomy Archive
- How to organize hierarchical structure in custom post type with taxonomy (like with categories)
- Organize WordPress site, so it can maintain with huge database
- Filter get_cat_id for Custom Post Type
- Rename a slug label
- Custom Taxonomy Category link
- Get Post Terms of Current Post (selected taxonomy term) – How to get only the taxonomy value and not “Array ( [0] => taxonomy term )” in the frontend?
- Custom taxonomy (categories) on custom post type return no results
- Need help deciding on a taxonomy
- Query all post and CPT from 2 specific taxonomies AND by ACF custom field
- Get Posts by Category, Tag , and CPT Taxonomy
- Pagination hitting 404 page on /page/4
- Rewrite custom post type with taxonomy
- Topic won’t save for a custom post type — how to debug?
- WordPress multisite – is it possible to have different taxonomies for each site?
- How to show list of taxonomy terms associated with specific post?
- Sort results without WP_QUERY?
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- Group Custom post type in a taxonomy page by its child taxomony
- Getting List of child terms from custom taxonomy parent
- Custom taxonomy query showing more than 4 posts
- Custom Post Type Taxonomy Term Order by Title
- Using page title as a link to term archive
- Custom Post Types – Taxonomy and Customization
- wp_dropdown_pages with tax_query clause
- Building a Data Intensive Website with WordPress
- Custom post type, taxonomy and admin bar
- Displaying taxonomies as category links within sidebar and creating pages for these
- How to get post count of specific taxonomy that have store name & category
- Get List of Terms based on a given term (different taxonomy)
- Duplicate slug/permalink issue while adding same post name
- Question about link two types of data in wordpress
- Add Tags to a Custom Post Type from a FrontEnd Form
- Do post types share the same records using the same taxonomy?
- Get the taxonomy value in the post loop inside the archive page
- How best to structure multiple CPTs and tax within a ‘resources’ section
- Custom post type archive URLs with a single taxonomy
- Custom post type archive page filters
- How to show related posts of category on post within custom posttype
- wp_set_object_terms creates taxonomies but does not add custom posts to it
- get taxonomies from terms
- Taxonomy counter on Taxonomy List(plugin)
- Get all posts for custom taxonomy term
- Listing all custom posts having a specific taxonomy whatever the terms
- Convert attribute woocommerce terms (taxonomy terms) in posts of custom post type
- tax_query not working?
- Taxonomy template file not working with a taxonomy that contains a slash
- I can not call the categories of custom post type
- Custom Taxonomy page redirecting to 404 page
- Multiple Custom Post Type with different Taxonomies
- Connect 8 Taxonomies to One (Main) taxonomy. How to?
- Filter By Term Not Working – Custom Post Type
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom Taxonomy is disabled on Edit page
- Override “Parent” input for custom taxonomy
- Taxonomy count per Post type
- Custom Post Type Categories Not Maintaining URL structure any more
- Best way to structure article and issue relationship for CPT
- Connecting multiple post types? Or linking “News” posts with “Game” posts how?
- Custom Post Type used for FAQs Accordion
- Sort by Custom Post Type (Multiple Loop)
- How to display elements of different post types?
- How to display only taxonomies of custom post type in a page?
- Check if taxonomy is attached to at least one post in a post-type
- How to make an admin create/edit post page to look like taxonomy page?
- Looping taxonomy in taxonomy?
- Custom Post Type order Title ASC
- Custom posts and custom taxonomies for many products and categories?
- How do i get the taxonomy term name on the CPT archive page?
- Echo post count of CPT with current taxonomy
- Taxonomy listing issue – does not display how I would like
- Taxonomy Archive URL + Template