2012-11-13 109 views
1

我想改變WordPress的閱讀更多鏈接,我發現一些教程在<!-- more -->我可以寫點東西<!-- more Proceed... -->(這不起作用)。 而在index.php我應該編輯<?php the_content('Read More..,'); ?>,但在我的index.php沒有閱讀更多的文字,它看起來像這樣<?php the_content(''); ?>,它是空的,它仍然顯示在帖子上閱讀更多。更改閱讀更多鏈接WordPress

其他想法如何改變它?

回答

0

可以更改

到任何你想要的

。所以你可以做到:

<?php the_content('more Proceed... '); ?> 

或任何你想要的。當您打開它時,「閱讀更多...」是默認設置。

+0

添加的代碼塊在這種情況下,我得到兩個更多鏈接..老一更多仍然在崗位 – DzaDze

0

在function.php文件

// Replaces the excerpt "more" text by a link 
function new_excerpt_more($more) { 
    global $post; 
    return '<a class="moretag" href="'. get_permalink($post->ID) . '"> Read more...  </a>'; 
} 
add_filter('excerpt_more', 'new_excerpt_more');