Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Genesis - limit category archive description to first page
- Description: Limit the category archive description to the first archive page.
- Plugin URI: https://www.damiencarbery.com/
- Version: 0.1
- Author: Damien Carbery
- */
- defined( 'ABSPATH' ) || exit;
- add_action( 'genesis_before_loop', 'check_for_archive_first_page', 5 );
- function check_for_archive_first_page() {
- if ( ! is_category() ) { return; }
- if ( is_paged() ) {
- remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement