[WP] 讓使用繼續閱讀的文章網址不出現 #more

瀏覽人數:333

參考網址:http://sofree.tw/thread-1152-1-1.html

  1. 開啟正在使用的佈景主題(Theme)資料夾,找到裡面的 index.php 檔案。
  2. 開啟 index.php 檔案後,尋找 php the_content 找到後將該行重寫為
    <?php the_content(__('  ')); ?>

  3. 重寫後,並在該行下方貼上下列語法
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">閱讀全文</a>

  4. 離開前請先另存新檔,並將檔案編碼改為 UTF-8 。
  5. 將檔案上傳至虛擬空間對應的資料夾即完成。

註:「閱讀全文」可以改寫為任何你想呈現的字。EX: Read More..., 繼續閱讀...等。

歷史上的今天

文章熱門度: 3%

相關文章

隨機文章

[免空] You Send It

[分享] MSN 錯誤代碼 80048820

[西片] Clash of the Titans 超世紀封神榜

[出遊] 張小鐵宜蘭驚魂記

[軟體] 世界之窗瀏覽器

[GO] 伯朗咖啡頭城城堡咖啡館

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

留言前請輸入以下字串: