Created
March 31, 2013 17:16
-
-
Save braddalton/5281335 to your computer and use it in GitHub Desktop.
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
function wpsites_archive_intro_text() { | |
if ( !is_category() && !is_tag() && !is_tax() ) | |
return; | |
if( get_query_var( 'paged' ) ) | |
return; | |
echo '<h1 class="entry-title">'.single_term_title('', false).'</h1>'; | |
echo '<div class="entry-content">'.wpautop( term_description() ).'</div>'; | |
} | |
add_action( 'genesis_before_loop', 'wpsites_archive_intro_text', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment