{"id":177938,"date":"2016-07-05T10:28:55","date_gmt":"2016-07-05T01:28:55","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/2016\/07\/05\/content%e6%9c%ac%e6%96%87%e8%a1%a8%e7%a4%ba%e3%81%a8excerpt%e6%8a%9c%e7%b2%8b%e8%a1%a8%e7%a4%ba%e3%82%92%e5%88%87%e3%82%8a%e6%9b%bf%e3%81%88%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84%e3%81\/"},"modified":"2017-01-29T06:35:29","modified_gmt":"2017-01-28T21:35:29","slug":"content%e6%9c%ac%e6%96%87%e8%a1%a8%e7%a4%ba%e3%81%a8excerpt%e6%8a%9c%e7%b2%8b%e8%a1%a8%e7%a4%ba%e3%82%92%e5%88%87%e3%82%8a%e6%9b%bf%e3%81%88%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/content%e6%9c%ac%e6%96%87%e8%a1%a8%e7%a4%ba%e3%81%a8excerpt%e6%8a%9c%e7%b2%8b%e8%a1%a8%e7%a4%ba%e3%82%92%e5%88%87%e3%82%8a%e6%9b%bf%e3%81%88%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84\/","title":{"rendered":"content(\u672c\u6587)\u8868\u793a\u3068excerpt(\u629c\u7c8b)\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u3066\u8868\u793a\u3057\u305f\u3044\u3067\u3059\u3002"},"content":{"rendered":"<p>\u9023\u6295\u3057\u3066\u3057\u307e\u3057\u305f\u3057\u305f(\uff1b\u00b4\u0434\uff40)\u309e\u3059\u307f\u307e\u305b\u3093\u3002\u3002\u3002<\/p>\n<p>blog\u4e00\u89a7\u8868\u793a\u306b\u3066\u4e0b\u8a18\u306e\u69d8\u306b\u672c\u6587\u3092\u53d6\u5f97\u3057\u3066\u8868\u793a\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&lt;?php if(is_home() )<br \/>\nif(mb_strlen($post-&gt;post_content, &#8216;UTF-8&#8217;)&gt;200){<br \/>\n\t$content= mb_substr(strip_tags($post-&gt;post_content, &#8216;&lt;p&gt;&lt;span&gt;&#8217;), 0, 200, &#8216;UTF-8&#8217;);<br \/>\n\t$content = strip_shortcodes( $content );<br \/>\n\techo $content.&#8221;;<br \/>\n}else{<br \/>\n\techo strip_tags(the_content(), &#8216;&lt;p&gt;&lt;span&gt;&#8217;);<br \/>\n} ?&gt;<\/p>\n<p>\u4e0a\u8a18\u306f$content= mb_substr(strip_tags($post-&gt;post_content, &#8216;&lt;p&gt;&lt;span&gt;&#8217;), 0, 200, &#8216;UTF-8&#8217;);\u306b\u3066&lt;p&gt;&lt;span&gt;\u306e\u30bf\u30b0\u3092\u6b8b\u3057\u3066blog\u4e00\u89a7\u8868\u793a\u306e\u672c\u6587\u3067\u6539\u884c\u8868\u793a\u51fa\u6765\u308b\u69d8\u306b\u3057\u3066\u304a\u308a\u307e\u3059\u3002<br \/>\n\u6b21\u306b$content = strip_shortcodes( $content );\u306b\u3066\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304cblog\u4e00\u89a7\u3067\u8868\u793a<br \/>\n\u3055\u308c\u306a\u3044\u69d8\u306b\u3057\u3066\u304a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3053\u307e\u3067\u306f\u72d9\u3063\u305f\u901a\u308a\u306e\u8868\u793a\u304c\u51fa\u6765\u305f\u306e\u3067\u3059\u304c\u6295\u7a3f\u753b\u9762\u306b\u3066\u672c\u6587\u306e\u307f\u306e\u8868\u793a\u306e\u5834\u5408\u306f\u826f\u3044\u306e\u3067\u3059\u304c\u629c\u7c8b\u5165\u529b\u6b04\u306b\u5165\u529b\u3057\u305f\u969b\u306f\u3053\u306e\u30b3\u30fc\u30c9\u3060\u3051\u3067\u306fblog\u4e00\u89a7\u306b\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<br \/>\n\u305d\u3053\u3067&lt;?php the_excerpt(); ?&gt;\u306e\u30bf\u30b0\u3092\u5229\u7528\u3057\u3066\u672c\u6587\u306e\u307f\u306e\u5834\u5408\u306fcontent\u3092\u53d6\u5f97\u3057\u629c\u7c8b\u5165\u529b\u6b04\u304c\u3042\u308b\u5834\u5408\u306f\u512a\u5148\u7684\u306bexcerpt\u3092\u53d6\u5f97\u3059\u308b\u69d8\u306b\u3057\u305f\u3044\u306e\u3067\u3059\u304c<\/p>\n<p>  &lt;?php<br \/>\n            if(is_home()) {<br \/>\n                the_excerpt(); \/\/\u629c\u7c8b\u3092\u8868\u793a\u3059\u308b<br \/>\n            } else {<br \/>\n                the_content(); \/\/\u5168\u6587\u3092\u8868\u793a\u3059\u308b<br \/>\n            }<br \/>\n        ?&gt;<\/p>\n<p>\u4e0a\u8a18\u3092\u53c2\u8003\u306b<br \/>\n&lt;?php if(is_home()) {<br \/>\nthe_excerpt();<br \/>\n} else {<br \/>\nif(mb_strlen($post-&gt;post_content, &#8216;UTF-8&#8217;)&gt;200){<br \/>\n\t$content= mb_substr(strip_tags($post-&gt;post_content, &#8216;&lt;p&gt;&lt;span&gt;&#8217;), 0, 200, &#8216;UTF-8&#8217;);<br \/>\n\t$content = strip_shortcodes( $content );<br \/>\n\techo $content.&#8221;;<br \/>\n}else{<br \/>\n\techo strip_tags(the_content(), &#8216;&lt;p&gt;&lt;span&gt;&#8217;);<br \/>\n}<br \/>\n} ?&gt;<br \/>\n\u3068\u3044\u3046\u98a8\u306b\u66f8\u304d\u8fbc\u3093\u3067\u3082echo strip_tags(the_content(), &#8216;&lt;p&gt;&lt;span&gt;&#8217;);\u3084$content = strip_shortcodes( $content );\u306e\u30bf\u30b0\u304c\u6709\u52b9\u306b\u306a\u3089\u305a<br \/>\n&lt;?php the_excerpt(); ?&gt;\u306e\u307f\u3092\u66f8\u304d\u8fbc\u3093\u3060\u306e\u3068\u540c\u3058\u8868\u793a\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u300e\u629c\u7c8b\u304c\u3042\u308b\u5834\u5408\u306f\u629c\u7c8b\u3092\u51fa\u529b\u3057\u3001\u306a\u3044\u5834\u5408\u306f\u6539\u884c\u304c\u6709\u52b9\u3067\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304c\u975e\u8868\u793a\u306e\u672c\u6587\u3092\u53d6\u5f97\u3059\u308b\u300f\u3068\u3044\u3046\u69d8\u306b\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3069\u306e\u69d8\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u3070\u5b9c\u3057\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u308f\u304b\u308b\u65b9\u304c\u3044\u307e\u3057\u305f\u3089\u662f\u975e\u3054\u6559\u6388\u4e0b\u3055\u3044\u3002<\/p>\n<p>\u5b9c\u3057\u304f\u304a\u9858\u3044\u81f4\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"template":"","class_list":["post-177938","topic","type-topic","status-closed","hentry","topic-tag-14366","topic-tag-content","topic-tag-excerpt","topic-tag-15131"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/177938","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/177938\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=177938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}