Skip to content

Instantly share code, notes, and snippets.

@cdils

cdils/archive.php

Last active Apr 26, 2017
Embed
What would you like to do?
<?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

This comment has been minimized.

Copy link

@markdeafmcguire markdeafmcguire commented Oct 21, 2016

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