目前,我通过传统方式称之为\\u摘录:
<?php the_excerpt(); ?>
但我在函数中添加了一个过滤器。php用于自定义“阅读更多”消息。// Changing excerpt more
function new_excerpt_more($post) {
return \' <a class="read_more" href="\'. get_permalink($post->ID) . \'">\' . \'read more\' . \'</a>\';
}
add_filter(\'excerpt_more\', \'new_excerpt_more\');
这就是问题所在;我也希望在帖子中调用\\u摘录,而不显示任何“阅读更多”类型的链接,同时保持实际摘录中使用的\\u摘录不受影响。