get_the_category()
is for getting the default post categories and get_the_tag_list()
for the default post tags.
For custom taxonomies you must use get_the_terms()
, i.e. get_the_terms( 'categoria-video' )
and get_the_terms( 'tag-video' )
in your case.
Note that these functions don’t print anything, they just return an array. If you check out the documentation for get_the_terms()
you’ll find an example for displaying your terms though. In it’s most simple form it would look like this:
$terms = get_the_terms( get_the_ID(), 'tag-video' );
if ( $terms && ! is_wp_error( $terms ) ) :
foreach ( $terms as $term ) {
echo $term->name;
}
Related Posts:
- How to change permalink structure for custom post type and it’s taxonomies?
- Get the first post term
- Creating “static” taxonomies to choose from, inside custom post type?
- How to completely disable a taxonomy archive on the frontend?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- How to list all categories and tags in a page?
- How to sort list of custom posts to get view like a tree of posts under categories and their children’s categories?
- How can you make permalink work for custom post type and taxonomy?
- How to get a list of term names of the custom post type im currently on in single.php
- List all custom post type posts from a given category?
- Custom post type taxonomy template
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- Category page only displaying the posts from a custom type
- Show Post Count of a Category
- Custom Post Types and Categories?
- How to create new category for custom post type?
- Get Post Primary Category
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- How to get the post type from a category id?
- How to show CPTs in term archive
- Display all posts in main category and 1 subcategory
- Show category ID on custom post type
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- Limit amount of posts made within a custom taxonomy
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Categories and tags for custom post types
- get_category_link() for custom post type does not include custom slug rewrite?
- Targeting categories in custom fields
- Invalid Taxonomy
- Need help deciding on a taxonomy
- Get Posts by Category, Tag , and CPT Taxonomy
- Get assigned post categories
- Default Category Page not showing custom post type which has taxonomy category
- Categories won’t appear on custom post type
- Custom Post Type with modified permalink structure results in 404
- Custom post type, taxonomy and admin bar
- Displaying taxonomies as category links within sidebar and creating pages for these
- Custom post type archive page filters
- How to show related posts of category on post within custom posttype
- get taxonomies from terms
- Create custom post type categories
- Set a Default CPT taxonomy by taxonomy id
- how to create custom taxonomy drop downs for parents and child
- How to manage a dynamic multi-level page hierearchy system?
- Categories manage
- Reuse the “category” slug for a custom post type
- How to create groups like that in buddypress?
- Update Cateogory Taxonomy Count for Attachment Post Type
- WordPress add taxonomies/terms list as a menu in archive page
- Best way to structure article and issue relationship for CPT
- Custom Post Type used for FAQs Accordion
- category_name not working in WP_Query
- How can I set up the URL for a category archive for a custom post type?
- Custom Post Type order Title ASC
- show only one category posts in admin
- Is it possible for post and custom post type to share a category base slug?
- How to get all taxonomies of a post type?
- Renaming Custom Post Types and Taxonomies
- How do I list custom taxonomy terms without the links?
- How to list custom taxonomy categories?
- Order Posts by Taxonomy and Meta Value
- Get categories for a specific post – Custom post type
- Include custom post types in categories widget
- Group Custom post type in a page by its taxomony tag
- Listing and accessing categories for a custom post type
- Taxonomy list. Order by a specific custom post type count
- Categories not working as expected with custom post type
- Get categories and descriptions from custom post type
- Problem with custom post types, taxonomy and permalinks
- Order By Post Type ThenBy Taxonomy
- Custom query to filter posts that have current post as a taxonomy [closed]
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- Using meta_query and tax_query at the same time
- List of Posts and Categories
- How to Set Taxonomy Object Description?
- Getting used tags per post type
- Navigate posts with different post type that are in the same categories
- Associate all Custom Post Types with Taxonomy
- Alphabetically sort a taxonomy.php template by post title
- Restrict category access to specific users/groups. Author always has access
- get_terms() parent, child and grandchild
- Custom Post Type Custom Archive Page Not Working
- 4 posts per page from single category
- Menu’s breaking, now showing all page links on site
- Copying over taxonomy structure from one CPT to another
- Page that lists publications by classifying them by taxonomy
- How to display all terms from all taxonomies in post, but separately for each taxonomy?
- List all posts associated under custom taxonomy
- Custom post types not displaying per category
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Displaying taxonomy icon outside archive page
- Problem to show custom post type in archive page category wise
- Taxonomy Grid Archive Help?
- Sorting custom post types by category?
- Author template – separate custom post type by custom taxonomy term for $curauth
- Get all custom_post_type posts + blog posts from one category in a single query
- Select Category as Page Parent