Last active
April 26, 2017 10:59
-
-
Save cdils/bafb6a8cec6eb23a50c03f5ab17f19b1 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 //remove this line | |
add_filter( 'genesis_term_intro_text_output', 'cd_do_archive_term_description' ); | |
/** | |
* Show archive description only on first page of a taxonomy archive. | |
* | |
* @return string | |
*/ | |
function cd_do_archive_term_description( $intro_text ) { | |
if ( is_paged() ) { | |
$intro_text = ''; // Set $intro_text equal to nothing. | |
return $intro_text; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just came across this today and it does work but it removed the description from the first page so I'm not sure if I am missing something here. I am using the Genesis Sample Child theme here where I presume the function should be dropped into.