Created
July 24, 2014 13:34
-
-
Save billerickson/1a97b7e5c72afeac0a98 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
/** | |
* Default Term Description | |
* | |
*/ | |
function be_default_term_description( $desc, $term ) { | |
if( ( is_category() || is_tag() || is_tax() ) && empty( $desc ) ) | |
$desc = $term->description; | |
return $desc; | |
} | |
add_filter( 'genesis_term_meta_intro_text', 'be_default_term_description' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment