Created
January 20, 2017 00:47
-
-
Save hellofromtonya/bc4c9daebc0b755aa5d981daa630a1e1 to your computer and use it in GitHub Desktop.
Adding department terms to the Genesis footer entry meta
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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