Ok, I managed to do it with get_the_taxonomies()Codex
and unset() PHP Manual
So, here is how the final code looks like:
//define the arguments so the output will have the format I want
$args = array(
'template' => __( '%s: %l.' ),
'term_template' => '<a href="https://wordpress.stackexchange.com/questions/284512/%1$s">%2$s</a>',
);
//get the array and store it
$taxList = get_the_taxonomies( $post->ID, $args );
//remove the categories I don't want based on their slug
unset($taxList['categorias']);
//Show the list without the ones specified above
print_r($taxList);
Related Posts:
- Taxonomy: Why ‘with_front’ => false DOES NOT WORK?
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Assign posts to taxonomy terms instead of the taxonomy terms to posts?
- Exclude from search all custom posts which are NOT in a taxonomy term
- Custom SQL Query on Custom Post Type. Order by Taxonomy?
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- Paginated Taxonomy Term Archive including one post per term
- $wpdb: Counting posts corresponding to 3 terms in 3 different taxonomies
- Get posts by querying taxonomy and certain terms of the taxonomy?
- Custom post type templating problem
- Custom Post Type Taxonomy Filters
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- How to conditionally redirect to the post from a taxonomy page?
- How to group posts and get a mixed posts and groups view?
- How to list tags from custom post type attachments?
- How to get_term_meta on single custom post?
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop
- Custom Post type Query by Taxonomy
- Single.php for Custom Post Type > Taxonomy > Term
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- ACF – Retrieve custom taxonomy from a relationship field
- Display Custom Field or Custom Taxonomy in front page /post/product
- WP_Query not using custom taxonomy categories on custom post type
- Showing taxonomies with terms that are attached to custom post
- Error get_posts with Custom Taxonomy and OR relation
- Get list of CPT posts in *current* post’s taxonomy term
- tax_query showing no results
- Linking custom taxonomies and posts
- Storing/querying custom date data
- Saving Taxonomy Terms
- Get Posts by Custom Post Type ,Taxonomy, and Term
- Limit the number of posts in query_posts function with custom post types
- Taxonomy archives based on Custom Post Type
- Need some templating advice for templating with custom post types and taxonomies
- If on term-page -> get the current term?
- Filter posts with ajax form and checkboxes
- custom post type archive template per custom taxonomy term
- Should I change these content meta types before building complex archive page?
- custom post type paging not working past page 3
- get terms that have post with custom post type between 2 values
- How to show custom taxonomy in the permalink?
- Working with Next and Prev links in Single Taxonomy Templates
- Search by category displaying wrong items
- Permalinks for custom post-types within custom taxonomies not found
- Count posts with specific term_meta
- get_posts of Custom Post Type AND Custom Taxonomy
- How to add a custom taxonomy to show up in a custom post type menu?
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- Create template for taxonomy results limited by Custom Post Type
- Query Custom posts of same taxonomy as the post itself
- WordPress sort search results by custom order
- Query taxonomy of taxonomy of custom post type
- How to change permalink to include custom post type
- Invalid argument supplied in register_taxonomy $args->taxonomies
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Taxonomy in URL
- Custom Post Archive is not working
- Getting the taxonomy
- Wp Query with multiple custom tag(taxonomy) by get the terms
- Problems with custom taxonomies
- looping though custom post types and only return results in a given taxonomy
- Get taxonomy term by slug in post on archive page
- Query not work for current taxonomy
- Custom Taxonomy Template file not being used
- Replicating category/location page heirarchy
- Copy/Move selected taxonomy terms to another taxonomy for posts
- How to display class name in this shortcode post query
- Taxonomy rewrite pagination 404
- Custom types, taxonomies and query optimization
- Looking up custom taxonomy IDs by name
- Retrieve Custom Taxonomies with Description and Slug
- How to list posts by term (custom taxonomy)
- Query custom posts from custom taxonomy
- loop over all custom taxonomies for current custom post type and their values
- Use custom post type taxonomy between cpt slug and name
- Assigning categories to custom post types via a front-end form; only works for native post type
- How to order taxonomy terms by most recent post?
- How to set “section categories”?
- Building Link List for Custom Tax
- Custom taxonomy template for custom fields loop [closed]
- Create Inclusions and exclusions
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- Associate custom CPT with another CPT’s taxonomy and rewrite permalinks
- Same permalink structure for all post types?
- How to have working breadcrumbs with several taxonomies associated with a custom post type
- How to solve performance issue caused by custom post type overview with 20k+ custom taxonomy terms
- Show taxonomies from specific CPT
- Category / Custom Post Type permalink issue
- link posts to custom post type
- Loop through multiple custom taxonomy terms and display posts for a custom post type
- Most appropriate way to display CPT’s by children terms of custom taxonomies while retaining desired permalink structure?
- See the process of creating a taxonomy and tell me where I made a mistake
- Navigation won’t update to show full path to single post
- Advise on Custom Taxonomies and Structure
- Rewrite Rule for custom post type link with or without taxonomy terms
- How to add to taxonomies to a post type
- Filtering custom post types using category taxonomy
- How to use wp_set_object_terms depending on page ID?
- How to add capability to author role to assign custom taxonomy terms to a custom post type?