Main features of the plugin:
- It supports multibyte language (such as Chinese). It will not produce gibberish as some other excerpt plugins do.
- The html tags in the original posts, i.e., the font styles, colors, hyperlinks, pictures and such are preserved in the excerpt.
- For better readability, it displays 300 characters for each post on the homepage and 150 characters for each post on archive pages.
主要特點: 1,支援多位元組語言(如中文),不會產生亂碼。 2,摘要可保留文章中的格式標籤,如字型、顏色、連結、圖片等(需保留的標籤可在後台設定)。 3,首頁每篇文章顯示300字,存檔頁面每篇文章顯示150字(字數可設定)。
Installation
- Unzip and upload the
wp-utf8-excerpt directory to the /wp-content/plugins/ directory
- Activate the plugin through the 'Plugins' menu in WordPress
In your theme directory, edit the index.php file by changing
<?php the_content(); ?>
to
<?php if (is_single() or is_page()) { the_content(); } else { the_excerpt(); } ?>
安裝: 1,解壓到/wp-content/plugins/目錄 2,在外掛程式頁面啟用外掛程式 3,修改主題的index.php檔案,把
<?php the_content(); ?>
改成
<?php if (is_single() or is_page()) { the_content(); } else { the_excerpt(); } ?>
注意:有些主題在the_content()中還有一些字,比如the_content(’Continue Reading »’),這種要把整句話換掉。有些主題用了其他檔案來控制存檔頁面,如category.php、archive.php等,如有必要,請對這些檔案也做修改。