我在wordpress theme
的function.php
写了这个代码:添加功能,以特定的WordPress页面
remove_filter('get_the_excerpt', 'wp_trim_excerpt');
add_filter('get_the_excerpt', 'wpse_custom_wp_trim_excerpt');
function wpse_excerpt_length($length) {
return 40;
}
add_filter('excerpt_length', 'wpse_excerpt_length', 999);
我如何可以加载这个代码只对特定的WordPress页面,在特定页面-ID 5580?
谢谢