If you look at the source code of get_the_category()
you see that this is not much more than a call to get_the_terms ( $id, 'category' )
, where $id
is the current post id.
So, what you need is get_the_terms ( get_the_ID(), 'game' )
. You need get_the_ID
, because the ID
is not passed to the shortcode as it is to get_the_category
.
Related Posts:
- How to get shortcode working from custom meta field
- Customizing gallery shortcode in 3.5
- Custom taxonomy: same terms, but for different years
- Multiple content areas per page
- get_terms return errors
- How to show only Standard Format post in my custom taxonomy page -wordpress 3.8.1
- Reproducing hierarchical list output from wp_list_categories(), using get_categories()
- Print shortcode in custom action hook not where the shortcode is entered
- Fast way to add countries as a custom taxonomy term?
- Is there a filter hook that I can use to change how taxonomy term names are displayed?
- How to Register and Display Widget for Custom taxonomy
- Show Custom Taxonomy Slug(s)?
- Custom Taxonomy Archive not displaying entries
- Exclude custom taxonomy tag from loop
- Hide custom field if empty
- Filter posts by custom taxonomy terms
- shortcodes – style them or change/remove the square brackets?
- Gallery IDS and Captions: hide/show on a per ID basis
- Function to remove archive sidebar for custom taxonomy?
- Automatically check parents (in a taxonomy) when child is selected
- How to add textarea field to taxonomy (tag)?
- How can I get the custom post type assigned to a current custom taxonomy for query?
- wp_query get post custom taxonomy in search.php
- How do I apply style to each category of a list?
- Redirect to another page using contact form 7? [closed]
- How to get every custom taxonomy names and urls?
- Get Custom Taxonomy Terms by Date
- Display specific Taxonomy Term from Custom Post Type
- Semi complicated custom taxonomy question
- Get wordpress taxonomy slug name(s) to use as div class
- Creating a shortcode by pulling in a custom field from a plugin
- How do I list custom taxonomy terms with the links?
- Duplicated content with custom shortcode
- wordpress shortcode not working
- Problems making shortcode with custom post types and taxonomy
- Echo the Last Child Taxonomy only (not parents)?
- How to query term_id of a Custom Taxonomy by name
- Where to upload my new custom ShortCode in Separate .php file?
- How to show parent taxonomy using get_the_terms?
- wp_insert_post custom taxonomy multiple Category not added
- query variables for custom taxonomies
- If Term Name Exists, Append a Unique ID to Slug
- Display all subterms of a custom taxonomy filtered by parent terms
- My list of terms of custom taxonomy displays 7 times
- Taxonomy template is not reading
- wp.blocks.registerBlockType not showing what I want on the frontend
- URL issue after setting up Custom Structure in Settings >> Permalinks
- How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected
- WP_User_Query Search Multiple Keywords from a Multi-Select Field?
- Post filter with multiple checkbox taxonomy terms
- Combine Categories & Custom Taxonomy
- Local Shortcode Using WordPress Custom Fields
- Custom dropdown search form that allows users to select option B based from Option 1
- issue with saving custom metaboxes fields
- Changing ‘Add to cart’ button text and relink for some specific products [closed]
- ACF Shortcode bringing in my shortcode is adding unnecessary line breaks
- Taxonomy template by post type
- How to loop through 1 CPT with 2 Taxonomies
- How to support extra color options for shortcodes?
- Custom terms in custom category taxonomy
- How to setup a taxonomy that can have only one post assigned to it?
- Grouped custom taxonomy query
- Create advanced portal website with sections – taxonomy usage?
- Custom Query for Taxonomy
- Adding a third custom taxonomies
- How to create a shortcode with HTML code in it and custom parameters/
- Taxonomy question how to add more data
- How to get a custom taxonomy slug in body classes
- How to: Easily Move a WordPress Install from Development to Production?
- Is there a flowchart for WordPress loading sequence?
- Essential technical features for high-end WordPress web hosting? [closed]
- How to remove admin menu pages inserted by plugins?
- How to put logs in WordPress
- Conditionally Loading JavaScript/CSS for Shortcodes
- How to get the Date Format and Time Format settings for use in my template?
- Where are Additional CSS files stored
- Best Practices for Regression Testing WordPress Websites?
- Remove wrapping div and ul from output of wp_nav_menu
- Attaching taxonomy data to post with wp_insert_post
- What Is The Use Of map_meta_cap Filter?
- get post author id outside loop
- Custom Walker: how to get ID in function start_lvl
- Pass boolean value in shortcode
- Creative uses of WordPress [closed]
- How to *remove* a parent theme page template from a child theme?
- How do I make my child theme re-apply the settings that were customised when its parent was active?
- Multiple Inputs in a Customizer Control
- New WP_Customize API – how does it work under the hood?
- Embedding a SOAP Client into a WordPress Plugin?
- Is there anything that Joomla or Drupal can do that can’t be done in WordPress? [closed]
- Update widget form after drag-and-drop (WP save bug)
- Data sanitization: Best Practices with code examples
- How to benchmark a WordPress installation? [closed]
- Should I delete the default themes?
- Moving WP install from local to live, what about wp_posts GUID?
- Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn’t work
- Running Gutenberg React in Development Mode
- Prevent WordPress from automatically installing a new theme each year
- Can we use one WordPress installation for multiple databases, domains and content directories
- Is there a blank theme framework compatible with WP 3.0? [closed]