Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Add Custom Taxonomy Terms to Custom Post Type in Genesis Theme WordPress

April 19, 2014 Leave a Comment

To add in custom taxonomy terms into custom post types in Genesis WordPress theme you need to create a function with a conditional that equals the custom post type then set the post meta using shortcode which includes the taxonomy terms, then apply a filter to the result to the genesis_post_meta function in your functions.php file.

You can choose to have the custom taxonomy on its own or a mixture with categories and tags.

//Filter the Taxonomy Meta on a CPT
function themeprefix_genesis_post_meta_filter( $post_meta ) {  
	if ( 'coaching_technique' == get_post_type() ) {//swap in CPT name
		$post_meta='';//swap in taxonomy and label name
		return $post_meta;
	}
	elseif ( 'post' == get_post_type() ) {
		return $post_meta;
    }
}
add_filter( 'genesis_post_meta','themeprefix_genesis_post_meta_filter', 11 );

 

tax-term

Only Custom Taxonomy is shown

In the example above the custom post type is ‘coaching technique‘, the taxonomy is ‘difficulty-level‘ and a before label of ‘Difficulty Level‘ is used.

 

If you wanted to also keep the categories and tag values also you would also add those in the post_terms values like so:

//Filter the Taxonomy Meta on a CPT
function themeprefix_genesis_post_meta_filter( $post_meta ) {  
	if ( 'coaching_technique' == get_post_type() ) {//swap in CPT name
		$post_meta='Categorised Under: WordPress  ';//swap in taxonomy and label name
		return $post_meta;
	}
	elseif ( 'post' == get_post_type() ) {
		return $post_meta;
	}
}
add_filter( 'genesis_post_meta','themeprefix_genesis_post_meta_filter', 11 );

The above would give all taxonomy terms, custom, categories and tags.

tax-cat-tag

Custom and Regular Taxonomy are shown

 

The code has an elseif option to return just the regular post meta; categories and tags for regular posts.
Thanks to Brad Potter for optimising the code.

Cats: WordPress

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS ars technica

  • Apple takes Epic fight over app store fees to the Supreme Court
  • Russian citizens told "switch to Android" after Apple blocks key Russian apps
  • Apple ratchets up prices, blames the cost of memory
  • Apple patches high-severity eavesdropping vulnerability in Beats Studio Buds
  • 20 years of Intel Macs: Why Apple switched, and why it switched again

RSS mac surfer

  • iOS 27 Beta Code Hints at Camera AirPods, AirPods Ultra
  • Apple Watch Series 12 Rumored to Add Health Sensor in Band
  • Apple Suspends Camera AirPods Development: Report
  • Apple Seeks Dismissal of YouTube Channels AI Lawsuit
  • Jon Prosser Fires Back at Apple, Blames Co-Defendant

Donate

Copyright © 2026· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2026 · gee on Genesis Framework · WordPress · Log in