Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Created January 20, 2017 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellofromtonya/bc4c9daebc0b755aa5d981daa630a1e1 to your computer and use it in GitHub Desktop.
Save hellofromtonya/bc4c9daebc0b755aa5d981daa630a1e1 to your computer and use it in GitHub Desktop.
Adding department terms to the Genesis footer entry meta
add_filter( 'genesis_post_meta', __NAMESPACE__ . '\filter_genesis_footer_post_meta' );
/**
* Filter the Genesis Footer Entry Post Meta
* to add the post terms for our custom taxonomy to it.
*
* @since 1.0.0
*
* @param string $post_meta
*
* @return string
*/
function filter_genesis_footer_post_meta( $post_meta ) {
$post_meta .= sprintf(
' [post_terms taxonomy="department" before="%s"]',
__( 'Department: ', 'teambios' )
);
return $post_meta;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment