Reply To: Excerpts on specific pages only

Home Forums Lite Version Excerpts on specific pages only Reply To: Excerpts on specific pages only

#6740
Masonry Guy
Keymaster

Hi Kyle,

You need to keep this in your functions.php file.

add_filter('excerpt_length', 'my_excerpt_length');
function my_excerpt_length($length) {
   if (is_page('YOUR_PAGE_SLUG_HERE')) {
        return 100; // Show excerpt
    } else {
        return 0; // Don't show excerpt
    }
}

Thanks