Skip to content

Instantly share code, notes, and snippets.

@cdils
Last active April 26, 2017 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cdils/bafb6a8cec6eb23a50c03f5ab17f19b1 to your computer and use it in GitHub Desktop.
Save cdils/bafb6a8cec6eb23a50c03f5ab17f19b1 to your computer and use it in GitHub Desktop.
<?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;
}
}
@markdeafmcguire
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment