I think you are getting confused by terminology here.
Category is a taxonomy
. Specific categories you create are terms
.
our_gallery is taxonomy
. Landscapes is term
. our_gallery is not category
. It is its own taxonomy
and has nothing to do with category taxonomy
.
get_the_category()
function explicitly fetches terms
of category taxonomy
.
To get terms
of our_gallery taxonomy
you need more generic function get_the_terms()
.
Related Posts:
- get_categories for custom post type with a specific custom taxonomy attached
- How can I add the featured image functionality to a custom taxonomy?
- Combine two taxonomies in a hierarchical tree
- How can I select a primary category?
- How to make custom taxonomy check boxes like ‘Categories’
- How to create non-unique sub-category slugs?
- How to get next previous category in same taxonomy?
- Display empty taxonomy terms with get_terms()
- How to get the number of child categories a specific parent category has?
- How can I convert some categories to a custom taxonomy?
- Get multidimensional array that reflects category hierarchy
- Change existing taxonomy settings when using custom taxonomy
- How to get the id from the custom category?
- How can I edit the ‘Most Used’ tab in the categories meta-box to show another custom taxonomy?
- Display custom taxonomy attached to the post on post single page
- Question on using custom structures for categories
- Echo text using is_tag
- Same menu for different taxonomies to reach different content
- How could I write a get_categories_by_year() function?
- How to get posts using category slug in ClassiPress?
- How to set the same base url for two different taxonomies?
- Get WooCommerce product category list in functions.php
- Why use hierarchical taxonomies instead of many custom taxonomies?
- Renaming default category taxonomy?
- How to Manage and link certain custom taxonomy?
- Display List of Categories Within a Custom Taxonomy
- How to add a post with new Taxonomy without assigning to default category?
- Converting Categories (with ACF fields) to custom taxonomies
- Is There a Difference Between Taxonomies and Categories?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- Control term order on a per-post basis
- Share one taxonomy across multiple blogs in 3.0 [duplicate]
- How to list all categories and tags in a page?
- wp_update_nav_menu_item() to insert categories
- Admin Panel – Disable Moving Selected Terms To Top of Metabox
- cat_is_ancestor_of() for custom taxonomies
- Display only deepest category on a single post?
- How to add HTML5 ‘required’ attribute to wp_dropdown_categories() without JavaScripts?
- Wrap a chosen category name with div
- Connecting WordPress gallery to custom categories (taxonomy)
- How do I get the slug of a custom taxonomy category of a post?
- New categories are now going to 404s
- Show Post Count of a Category
- “Reversable” and “Re-useable” Subcategories (or other taxonomic structure)
- If statement within PHP echo
- “show option all” on list categories doesn’t display taxonomy
- Taxonomies for WordPress Media Library [duplicate]
- How to create new category for custom post type?
- display taxonomy slug from term ID
- Display all posts in main category and 1 subcategory
- Force a user’s posts category
- Search Posts / Pages with multiple options?
- ACF: Display category name using taxonomy field
- Categories of custom taxonomy don’t show any posts
- Taxonomy name repeating when showing 2 posts from each category
- New Categories Not Shown In the Post Edit Page
- Shortcodes not working in category or tag description
- Display Posts Loop for each parent and for each Child
- Why don’t posts show up in my categories on the frontend?
- Flat category URLs but retaining hierarchy?
- Get posts from specific taxonomy term
- How many categories can WordPress handle before performance suffers?
- Wacky taxonomy in wordpress
- Some categories missing on wp-admin/edit-tags.php?taxonomy=category
- List just subcategory and products of active category page in Woocommerce
- custom page for custom Taxonomy
- Eliminate word from $term->name
- Filter By Category Dropdown List With Custom Taxonomies
- query_posts by category_name and custom taxonomy
- How to schedule categories?
- Showing HTML if Post is In Certain Taxonomy Term
- Copy post taxonomy?
- How to load several hierarchical categories from functions.php
- Posts not listing out sub category in hierarchy
- Post to inherit custom category background image from parent
- Combining these queries? (Same taxonomy term + same category as post)
- Link posts together (relative, not grouped)
- How to fix select filter on category
- Disable Category Taxonomy
- Migrate the posts of a category to another blog as a custom taxonomy
- Taxonomy custom check box meta field not getting saved
- Filtering posts in category by tag URL
- Grab all the posts for particular category
- Create custom post type categories
- Set a Default CPT taxonomy by taxonomy id
- Image Upload Custom Form Field for Category and Custom Taxonomy
- How get all media from a posts category by db?
- Grouping parent categories into sections
- get_adjacent_post_link excluded_terms ignored
- Taxonomy for custom post type not found
- Category base 404 – fix
- Create Cross Promoting Categories in WordPress Using ‘pre_get_posts’
- How to Organize my Photo Albums?
- Woocommerce custom taxonomy order
- Hook action when create new category [duplicate]
- Images as Categories
- Taxonomy page wpml dropdown not working
- Is it possible for post and custom post type to share a category base slug?
- Quick Edit on taxonomy names results in error