Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想让 [...] 在帖子页面中显示为指向该特定帖子的超链接。我知道这是来自 get_the_excerpt()。
如何做到这一点?提前致谢。
将此函数复制到您的functions.php
function new_excerpt_more($more) { global $post; return '<span class="readmore"><a class="moretag" href="'. get_permalink($post->ID) . '"> Read more..</a></span>'; } add_filter('excerpt_more', 'new_excerpt_more');