<?php $terms = get_the_terms( $post->ID , 'swatches-category' ); foreach ( $terms as $term ) { echo $term->name; } ?>
That solved it! 🙂
Related Posts:
- Setting Custom Sort Order of Posts within a Category
- How to change the layout and styling of posts according to their category in WordPress?
- Add default content to post (for specific category)
- Show One Category on Post
- Add custom field to category of custom post type
- Do I use custom post type or something else?
- Custom Theme Want To Remove One Category From All Displays
- Edit custom post type admin menu link
- Deleted category by mistake, all posts now have categorized category. Can i revert that?
- How can i limit the number of posts created per category?
- WordPress custom Query for Posts in Category display posts multiple times
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Set Default Category to Username
- if in category but only with post meta
- How to call posts under a specific category on static front page?
- Static pages not working
- How to display only one category in a custom post type?
- Can I style single post that are in multiple catergories?
- Custom post styling per category?
- Add Categories To Custom Post
- Static text above category page
- Show a Category Specific Info Box
- Add default content to post (for specific category)
- Display ONLY Latest Post From Several Categories
- Taxonomy Category category.php not working
- Post’s arent displaying
- Only show posts belonging to multiple cateogries at same time
- I have a website issue I am trying to resolve
- How to get the number of posts in a selected category?
- Add a checkbox to post screen that adds a class to the title
- Show related posts by category but ignore one category
- Attach pdf file to custom post type
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- Can I hide a specific post from latest posts page?
- How to show post(excerpt) from specific category on wp page?
- user contributed content as custom post types
- Divide Loop Into Days & Categories
- Different template for posts of all subcategories of category
- Post Type Label Name
- Mark menu item as current-menu-item for category
- How to set up multiple taxonomies for groups of posts
- How to display category from recent posts?
- Can I divide the pages into categories?
- Custom Post Type – Category Rewrite – Remove Rewrite from Sitemap
- Prevent Delete Attachment by URL or When Submit
- Turn On Comments On Custom Post Types in Directory Theme
- Post page to display specific category
- Calling Different Custom Post Timestamps in a table
- how to show single post in a custom template
- Excluding posts not working
- How to include my own css in post
- Remove current category from post but display all others
- How do I show posts from another wordpress installation?
- How do I include the category next to the title of a post?
- Create a custom posts page
- How to show a custom taxonomy in the theme?
- How to import nested categories from XML file?
- Migrate posts from category and sub-category via SQL
- Posts Missing in Dashboard after update
- register_post_type permalink
- How to get post with slug and exclude categories
- Retrieving posts by their date and category
- Are post, page and category IDs unique to each other?
- WordPress displays post on subcategory only
- Post titles and thumbnails as links to custom post types?
- Adding a custom post type meta field to rss
- Deleting old posts
- How To Use Custom Tax of a Post Type
- Categories Listing and Highlighting current category item
- get posts, run a custom query, and join the results
- search form for custom fields
- Author post count in category
- Show post count in custom taxonomy page
- Post relationships/nesting
- Automatic Table of contents with categories and posts
- post categories – how to show only categories with a specific parent id
- Creating a “category” of featured posts
- How do I make it so that new posts within a certain category go into a certain page?
- List Authors For Current Category
- List posts of assigned categories in list of all categories on single.php
- Custom URL Structure for posts with subcategories
- How to show the posts list into a static page? Problems to use the loop into a static page
- Assign specific ads to specific categories/posts
- 404 for some custom taxonomy not ALL taxonomy
- find posts with exactly 3/4 categories
- Use radio buttons & checkboxes for post categories
- Displaying only posts from a certain category on my custom page template
- List posts that are in the same category as the current post title
- WordPress strips some attributes for author posts
- Display one post randomly from category on home page
- Multiple blog “feeds” in a single blog each with distinctly styled post pages
- How to get pagination working with “Pending” Posts
- Deleting first four characters from all Post Titles
- Deleling wordpress posts permanently still have IDs
- Show with echo if a post has two or more categories
- Can I get custom post items in select box (dropdown)
- How to have 2 posting pages on a blog
- How can I get on the same row two post of different categories?
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields
- Site ‘Categories’: save an admin global setting with post metadata [closed]