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
- How can I get the categories and subcategories separately?
- How to display non-hierarchical taxonomy as terms with checkboxes?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Use tag interface for hierarchical taxonomy?
- Using URL parameters, list posts from category and custom taxonomy
- Different templates for parent and children categories/taxonomies
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- How to Override default update_count_callback for category
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Get a list of Terms for a specific category
- Custom post type taxonomy template
- Any way to assign Post Categories and Tags to Links?
- Display name of the last child category
- How to export/import categories and keep their IDs?
- How to use wp_category_checklist()?
- wp_dropdown_categories and custom taxonomy + custom post type
- Get all sub-categories of a parent category
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- Specifying multiple categories in URL (permalink)?
- Should the actual /category/ directory be 404? Is that normal WP behaviour
- Limit number of terms that a custom taxonomy can save per custom post type
- Display Taxonomy Terms in an option tag with value being the slug
- category filter doesn’t work in WPML
- One Specific Category To Permalink
- Get Posts Under Custom Taxonomy
- Filtering *out* a taxonomy from the admin post list
- category image taxonomy
- Categories overview that links to page displaying posts
- How can I improve this taxonomy treating approach?
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- get_terms function not returning anything
- Why custom taxomony not showing when create a post?
- How to display parents category and child category separately for a specific post?
- Get Categories Where Taxonomy Equals ‘n’
- How to display a value inside a post with a specified category from a category custom field? [closed]
- Grandchild Term Things Grandfather Term is It’s Parent
- What Must to Display the “mysite.com/category” URL?
- Custom page category taxonomy 404
- How to get posts by category and by choosing a taxonomy term?
- Get posts in a subcategory of a chosen parent
- Assign a custom post to a custom taxonomy based on custom field value
- Natural sort / ordering wp_dropdown_categories
- Best way to categorize/populate a magazine style layout
- get_the_category – display only a single category for a post (not all categories)
- get_the_terms has strange result since version 6.0
- display category with background color
- How can i add service category here? [duplicate]
- List taxonomy terms assigned to a post in hierarchical view
- Page category filter in admin dashboard
- Limit categories to hierarchal depth of 2
- Show the parent taxonomy by creating shortcode in woocommerce?
- Parent Category and Subcategory default text generated with category
- Post List by category and under custom taxonomy
- Using heirarchial tags or Custom taxonomies
- Create duplicate category page with content variations
- Most efficient way to display current post subcategories?
- How to echo Tags and Categories as plain text
- How can I add HTML classes for current taxonomy/term hierarchy into my pages to simplify styles?
- How to get post count including nested categories
- New Category – custom taxonomy
- How to create default categories in new installs?
- Why is my post categories not displaying?
- Check if value is a custom taxonomy category name
- Problem importing categories and sub-categories
- finding out the top 5 source ( source is a custom taxonomy ), in a given category
- Show parent-child relationship for categories in the wordpress admin
- Order Categories by Character Count
- hide_empty property not working when using get_terms
- Taxonomy page wpml dropdown not working
- Is it possible for post and custom post type to share a category base slug?