Last active
August 29, 2015 14:02
-
-
Save aprea/886a5f1d6ec094e996fc to your computer and use it in GitHub Desktop.
Disable excerpt filtering for a specific post category
This file contains hidden or 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 | |
function disable_excerpt_filtering() { | |
// disable excerpt filtering for the "markup" post category | |
if ( has_category( 'markup' ) ) { | |
return true; | |
} | |
return false; | |
} | |
add_filter( 'advanced_excerpt_skip_excerpt_filtering', 'disable_excerpt_filtering' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment