{"id":4461,"date":"2009-01-13T01:40:16","date_gmt":"2009-01-13T01:40:16","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-utf8-excerpt\/"},"modified":"2021-11-30T14:53:00","modified_gmt":"2021-11-30T14:53:00","slug":"wp-utf8-excerpt","status":"publish","type":"plugin","link":"https:\/\/da.wordpress.org\/plugins\/wp-utf8-excerpt\/","author":663722,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.8.3","stable_tag":"0.8.3","tested":"5.8.13","requires":"","requires_php":"","requires_plugins":"","header_name":"WP-UTF8-Excerpt","header_author":"Betty","header_description":"","assets_banners_color":"","last_updated":"2021-11-30 14:53:00","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/myfairland.net\/wp-utf8-excerpt\/","header_author_uri":"http:\/\/myfairland.net\/","rating":5,"author_block_rating":0,"active_installs":800,"downloads":82046,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.5.3":{"tag":"0.5.3","author":"BettyJJ","date":"2011-10-12 13:38:23"},"0.6.2":{"tag":"0.6.2","author":"BettyJJ","date":"2011-12-06 08:28:29"},"0.8.2":{"tag":"0.8.2","author":"BettyJJ","date":"2019-04-04 08:01:17"},"0.8.3":{"tag":"0.8.3","author":"BettyJJ","date":"2021-11-30 14:53:00"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.5.3","0.6.2","0.8.2","0.8.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1445,1395,926,86],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-4461","plugin","type-plugin","status-publish","hentry","plugin_tags-archive","plugin_tags-excerpt","plugin_tags-homepage","plugin_tags-post","plugin_committers-bettyjj"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-utf8-excerpt.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<h4>Main features of the plugin:<\/h4>\n\n<ol>\n<li>It supports multi-byte language (such as Chinese). It will not produce gibberish as some other excerpt plugins do.<\/li>\n<li>The html tags in the original posts, i.e., the font styles, colors, hyperlinks, pictures and such are preserved in the excerpt.<\/li>\n<li>For better readability, it displays 300 characters for each post on the homepage and 150 characters for each post on archive pages.<\/li>\n<\/ol>\n\n<!--section=installation-->\n<ol>\n<li>Unzip and upload the <code>wp-utf8-excerpt<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<p>And it's done!<\/p>\n\n<p>If it does not work, look in your theme directory, edit the index.php file by changing<\/p>\n\n<pre><code>    &lt;?php the_content(); ?&gt;\n<\/code><\/pre>\n\n<p>to<\/p>\n\n<pre><code>    &lt;?php\n        if (is_single() or is_page()) {\n            the_content();\n        } else {\n            the_excerpt();\n        } \n    ?&gt;\n<\/code><\/pre>\n\n<p>\u6ce8\u610f\uff1a\u6709\u4e9b\u4e3b\u9898\u5728the_content()\u4e2d\u8fd8\u6709\u4e00\u4e9b\u5b57\uff0c\u6bd4\u5982the_content(\u2019Continue Reading \u00bb\u2019)\uff0c\u8fd9\u79cd\u8981\u628a\u6574\u53e5\u8bdd\u6362\u6389\u3002\u6709\u4e9b\u4e3b\u9898\u7528\u4e86\u5176\u4ed6\u6587\u4ef6\u6765\u63a7\u5236\u5b58\u6863\u9875\u9762\uff0c\u5982category.php\u3001archive.php\u7b49\uff0c\u5982\u6709\u5fc5\u8981\uff0c\u8bf7\u5bf9\u8fd9\u4e9b\u6587\u4ef6\u4e5f\u505a\u4fee\u6539\u3002<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='%E6%83%B3%2F%E4%B8%8D%E6%83%B3%E5%9C%A8%E6%91%98%E8%A6%81%E4%B8%AD%E6%98%BE%E7%A4%BA%E6%9F%90%E4%BA%9B%E6%A0%87%E7%AD%BE%EF%BC%8C%E6%AF%94%E5%A6%82%E5%9B%BE%E7%89%87%E3%80%81%E8%A7%86%E9%A2%91%EF%BC%8C%E6%80%8E%E4%B9%88%E5%8A%9E%EF%BC%9F'><h3>\u60f3\/\u4e0d\u60f3\u5728\u6458\u8981\u4e2d\u663e\u793a\u67d0\u4e9b\u6807\u7b7e\uff0c\u6bd4\u5982\u56fe\u7247\u3001\u89c6\u9891\uff0c\u600e\u4e48\u529e\uff1f<\/h3><\/dt>\n<dd><p>\u7b54\uff1a\u8fdb\u5165\u540e\u53f0\u8bbe\u7f6e\u9875\u9762\uff08Settings\u2014\u2014Excerpt\uff09\uff0c\u4fee\u6539Allow these HTML tags\u4e2d\u7684\u5185\u5bb9\u3002\n\u9ed8\u8ba4\u8bbe\u7f6e\u663e\u793a\u56fe\u7247\uff0c\u4e0d\u60f3\u663e\u793a\u56fe\u7247\u7684\u8bdd\u5c31\u628a\u5220\u6389\u3002\n\u9ed8\u8ba4\u8bbe\u7f6e\u4e0d\u663e\u793a\u89c6\u9891\uff0c\u60f3\u663e\u793a\u89c6\u9891\u7684\u8bdd\u5c31\u52a0\u5165\u89c6\u9891\u7684\u6807\u7b7e\uff0c\u5404\u4e2a\u89c6\u9891\u7f51\u7ad9\u4e0d\u4e00\u6837\uff0c\u6709\u53ef\u80fd\u662f\u6216\u6216\u5176\u4ed6\uff0c\u67e5\u770b\u63d2\u5165\u89c6\u9891\u7684\u4ee3\u7801\u5c31\u77e5\u9053\u4e86\u3002\n\u5176\u4ed6\u6807\u7b7e\u4ee5\u6b64\u7c7b\u63a8\u3002<\/p><\/dd>\n<dt id='%E4%B8%BA%E4%BB%80%E4%B9%88%E6%88%91%E7%9A%84rss%20feed%E4%B8%8D%E6%98%BE%E7%A4%BA%E5%85%A8%E6%96%87%EF%BC%9F'><h3>\u4e3a\u4ec0\u4e48\u6211\u7684RSS Feed\u4e0d\u663e\u793a\u5168\u6587\uff1f<\/h3><\/dt>\n<dd><p>\u7b54\uff1a\u672c\u63d2\u4ef6\u6ca1\u6709\u52a8RSS Feed\uff0c\u4f60\u7684Feed\u4e0d\u663e\u793a\u5168\u6587\uff0c\u5e94\u8be5\u8ddf\u672c\u63d2\u4ef6\u65e0\u5173\u3002\u8bf7\u67e5\u770b\u4f60\u7684\u540e\u53f0\u2014\u2014\u8bbe\u7f6e\u2014\u2014\u9605\u8bfb\u2014\u2014Feed\u4e2d\u6bcf\u7bc7\u6587\u7ae0\uff0c\u662f\u4e0d\u662f\u9009\u6210\u6458\u8981\u4e86\u3002<\/p><\/dd>\n<dt id='%E6%88%91%E7%94%A8%E4%BA%86%E4%BB%A3%E7%A0%81%E9%AB%98%E4%BA%AE%E6%8F%92%E4%BB%B6%EF%BC%8C%E6%98%BE%E7%A4%BA%E4%B8%8D%E6%AD%A3%E5%B8%B8%EF%BC%9F'><h3>\u6211\u7528\u4e86\u4ee3\u7801\u9ad8\u4eae\u63d2\u4ef6\uff0c\u663e\u793a\u4e0d\u6b63\u5e38\uff1f<\/h3><\/dt>\n<dd><p>\u7b54\uff1a\u7528\u4ee3\u7801\u683c\u5f0f\u5316\u63d2\u4ef6\u597d\u50cf\u786e\u5b9e\u5bb9\u6613\u51fa\u95ee\u9898\u3002\u5bf9\u4e8e\u8fd9\u79cd\u6587\u7ae0\uff0c\u6682\u65f6\u8bf7\u5927\u5bb6\u5148\u624b\u52a8\u52a0\u6458\u8981\u5427\uff0c\u6211\u518d\u60f3\u60f3\u529e\u6cd5\u3002<\/p><\/dd>\n<dt id='%E6%88%91%E8%AE%A8%E5%8E%8C%E9%82%A3%E4%B8%AA%E2%80%9C%E7%BB%A7%E7%BB%AD%E9%98%85%E8%AF%BB%E2%80%9D%E9%93%BE%E6%8E%A5%EF%BC%8C%E6%80%8E%E4%B9%88%E5%8A%9E%EF%BC%9F'><h3>\u6211\u8ba8\u538c\u90a3\u4e2a\u201c\u7ee7\u7eed\u9605\u8bfb\u201d\u94fe\u63a5\uff0c\u600e\u4e48\u529e\uff1f<\/h3><\/dt>\n<dd><p>\u7b54\uff1a\u540e\u53f0\u9009\u9879\u4e2d\u53ef\u4ee5\u8bbe\u7f6e\u201c\u7ee7\u7eed\u9605\u8bfb\u201d\u7684\u6587\u672c\uff0c\u4f60\u53ef\u4ee5\u6539\u6210\u201cRead more\u201d\u6216\u5176\u4ed6\u4efb\u4f55\u4e1c\u897f\u3002\u5b83\u7684class\u4e3aread-more\uff0c\u53ef\u4ee5\u7528CSS\u8fdb\u884c\u7f8e\u5316\u6216\u9690\u85cf\u3002\u5982\u679c\u4f60\u5b9e\u5728\u8ba8\u538c\u5b83\uff0c\u8bf7\u6253\u5f00\u63d2\u4ef6\u6587\u4ef6wp-utf8-excerpt.php\uff0c\u627e\u5230165\u884c\u5de6\u53f3\u7684<\/p>\n\n<pre><code>    $text .= \"&lt;p class='read-more'&gt;&lt;a href='\".get_permalink().\"'&gt;\".$read_more_link.\"&lt;\/a&gt;&lt;\/p&gt;\";\n<\/code><\/pre>\n\n<p>\u5220\u6389\u5b83\uff0c\u6216\u8005\u6ce8\u91ca\u6389\u5b83\uff08\u5728\u884c\u9996\u52a0\u4e0a\/\/\uff09\uff0c\u8fd9\u4e2a\u94fe\u63a5\u5c31\u4e0d\u4f1a\u51fa\u73b0\u4e86\u3002<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>0.8.2 fix a bug caused by function excerpt_remove_blocks() undefined<\/p>\n\n<p>0.8.1 support password protection; very short posts will also show the 'read more' link<\/p>\n\n<p>0.8 support latest WP version; better performance; fix typos; give warning if the PHP mbstring library is not available<\/p>\n\n<p>0.6.2   search result page is now treated as archive page<\/p>\n\n<p>0.6.1   fix numerous compatibility issues after hooking the_content; now works with WP-Syntax!<\/p>\n\n<p>0.6 support latest WP version; no longer need to edit theme files; i18n; almost rewrite to optimize performance<\/p>\n\n<p>0.5.3   you can change the text of the read more link now<\/p>\n\n<p>0.5.2   add more default allowed tags, to make it more convenient<\/p>\n\n<p>0.5.1   fix a small bug about the <!--more--> tag<\/p>\n\n<p>0.5     add the option to set the HTML tags you'd like to preserve<\/p>\n\n<p>0.4.2.1 fix a small bug<\/p>\n\n<p>0.4.2   fix a bug caused by the bug fixed in 0.4.1<\/p>\n\n<p>0.4.1   fix a \"missing argument for mb_strlen\" bug<\/p>\n\n<p>0.4     add an option page. Now you can set the excerpt length in Settings-&gt;Excerpt.<\/p>\n\n<p>0.3.4   add support for the <!--more--> tag; give the \"read more\" link a \"read-more\" class so that one can control its style via css<\/p>\n\n<p>0.3.3   fix: display the \"read more\" link even if the excerpt is given by the user<\/p>\n\n<p>0.3.2   fix a bug in the \"read more\" link (the permalink)<\/p>\n\n<p>0.3.1   add a \"read more\" link<\/p>\n\n<p>0.3     release<\/p>","raw_excerpt":"This plugin generates a better excerpt for multi-byte language users (Chinese, for example). Besides, it keeps the html tags in the excerpt.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/4461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=4461"}],"author":[{"embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bettyjj"}],"wp:attachment":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=4461"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=4461"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=4461"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=4461"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=4461"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=4461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}