0
我正在使用wordpress。我想爲每篇文章自動添加閱讀更多鏈接。我不想使用標籤。因爲我想保持每篇文章的長度相同。就像在200字以後它會顯示更多鏈接。在wordpress中閱讀每篇文章的鏈接
我使用二十個主題。我把代碼放在function.php
function new_excerpt_more($more) {
global $post;
return '<a href="'. get_permalink($post->ID) . '">Read the Rest...</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
但是這是行不通的。
任何機構都知道如何做到這一點
感謝