This plugin generates a better excerpt for multibyte language users (Chinese, for example). Besides, it keeps the html tags in the excerpt.
Main features of the plugin:
1. It supports multibyte language (such as Chinese). It will not produce gibberish as some other excerpt plugins do.
2. The html tags in the original posts, i.e., the font styles, colors, hyperlinks, pictures and such are preserved in the excerpt.
3. For better readability, it displays 300 characters for each post on the homepage and 150 characters for each post on archive pages.
Installation
1. Unzip and upload the `wp-utf8-excerpt` directory to the `/wp-content/plugins/` directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
And it’s done!
If it does work, look 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();
}
?>
本文作者:Betty | 本文地址: https://myfairland.net/wp-utf8-excerpt-en/
本站文章除特殊标明者外均为原创,版权所有,如需转载,请以超链接形式注明作者和原始出处及本声明
[…] English version of this article: http://myfairland.net/wp-utf8-excerpt-en/ […]
A polish translate files are available on my site: http://www.ctomczyk.pl/wp-content/themes/ct/download/wp-utf8-excerpt-pl_PL.zip
Thank you! I’ll include your translation in the next update. (Of course you’ll be credited. :) )
[…] English version of this article: http://myfairland.net/wp-utf8-excerpt-en/ […]
[…] 摘要插件:适合中文的 WordPress 摘要插件 本文由 admin发表于 2012 四月 20th | 暂无评论 English version of this article: http://myfairland.net/wp-utf8-excerpt-en/ […]
[…] English version of this article: http://myfairland.net/wp-utf8-excerpt-en/ […]
[…] English version of this article: http://myfairland.net/wp-utf8-excerpt-en/ […]
[…] English version of this article: http://myfairland.net/wp-utf8-excerpt-en/ […]
[…] version of this article: http://myfairland.net/wp-utf8-excerpt-en/ 如果你觉得我的插件有用,欢迎向我捐赠。 […]
[…] English version of this article: http://myfairland.net/wp-utf8-excerpt-en/ […]