Show Category Descriptions on the First Page Only
Hides category, tag and taxonomy descriptions on page 2 and beyond of an archive, so long intro texts are not repeated on every page.
Opens WPIDE on
Code
add_filter( 'get_the_archive_description', function ( $description ) {
return is_paged() ? '' : $description;
} );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.