Last active
August 29, 2015 14:14
-
-
Save MaruscaGabriel/0de6d6051374d8748fdd 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 mg_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', 'mg_default_term_description' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment