Home › Forums › Lite Version › Excerpts on specific pages only › Reply To: Excerpts on specific pages only
August 12, 2015 at 4:02 pm #6740
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