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
- Shouldn’t this be easy?! Custom post type/custom taxonomy permalink
- Combining Multiple Taxonomies in one URL
- Getting the Intersection of Two Custom Taxonomy Terms for a Custom Post Type?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- ‘No pages found’ in Dashboard after registering custom taxonomy
- Querying Posts by Taxonomy From Alternate Network Site
- How to display recent posts added in custom post types
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- Permalinks when filtering multiple custom post types by single taxonomy
- Filter custom post type archive page with custom taxonomies (categories) with AJAX
- How can I filter by taxonomy on a custom post type’s page?
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- Custom Post hierarchical to custom taxonomy
- Loop custom taxonomy to get lists of cutom post types?
- Conditional Query of Custom Post Type and custom taxonomy
- Is $object_type truly required with register_taxonomy()?
- Show a Category X’s custom post type on Category X archive page?
- Specific query for custom post type
- Suggested Post and Taxonomy structure
- Display post content with respect to its title?
- Use custom walker to add taxonomy terms to main nav menu
- WP_Query orderby and tax_query
- Custom Taxonomy not being saved on custom posttype
- Permalinks: custom structure for taxonomy – tags?
- Creating custom post type with custom taxonomy and custom fields programatically
- How to get only child terms from a custom taxonomy of current post type?
- Disable custom taxonomy on admin bar
- how to get this tax_query working?
- How to see posts in taxonomy endpoint
- Get taxonomy singular name instead of taxonomy slug inside $taxonomy query
- Add term slug in URL of custom post type details page
- Cannot choose custom categories for custom post type in post editor
- Custom post type and custom taxonomy 404 on page 2
- Ideas on how to organize a project [closed]
- How should I structure complex content hierarchies?
- Querying two different post types with the same taxonomony
- Arduous WordPress Custom Post Type Permalink Path
- Modifying rewrite rules to use /category//
- Order custom posts by taxonomy, then by meta_key
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- set object terms after some some time of published post – functions.php
- Display custom post types in dropdown with option “all”
- How to select custom posts thats are tagged with multiple taxonomies using wpdb
- Posts per Page on custom Taxonomy Template
- Set up Custom Taxonomy Archive Template File To Cover 3 Categories
- Taxonomy shows up twice on Custom Post Type
- Custom Post Type / Taxonomy / Term – what template to use to avoid 404-page?
- Back, Next, and Previous links for the REFERRING term archive
- Query posts by multiple custom fields
- Display title of all custom posts from same taxonomy term on a custom post template
- Set different posts_per_page for custom post type/taxonomy
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- Facing some Issues on Two Parts Custom Post Type Taxonomy Names
- I want to create an archive and single page for a custom taxonomy for a custom post type
- Creating adminable dynamic filtering on custom post type
- Complex strcuture as CPT or taxonomy for use in woocommerce product variations [closed]
- WP_Query for CPT with filter by another WP_Query
- Get posts in same category not working
- Heirarchical URLs with CPT and custom taxonomy
- Displaying taxonomies with manage_{custom-post-type}_posts_custom_column
- Permalinks when using Custom Post Type with static page for archive
- How to change permalinks to taxonomy and post type’s posts
- Get Registered Custom Post Type to get All Custom Taxonomies
- Parent cpt/child custom post type URL permalink relationship
- Query Only Show Text on Posts With Certain Taxonomy Tag
- How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?
- Custom taxonomy meta fields
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- Problem with shortcode
- WP Query – Can’t get posts with specific taxonomy