[Plugin: Promotion Slider] Excerpt length
-
I’ve put this code in my functions.php file but it doesnt seem to make any changes to the length of the excerpts when using this plugin.
function custom_excerpt_length( $length ) {
if( ‘ps_promotion’ == get_post_type() ) {
$length = 20;
}
return $length;
}
add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );Any help on what I should check? or is this code outdated in anyways?
- The topic ‘[Plugin: Promotion Slider] Excerpt length’ is closed to new replies.