{"id":176630,"date":"2014-06-02T21:24:27","date_gmt":"2014-06-02T12:24:27","guid":{"rendered":""},"modified":"2016-07-30T20:47:16","modified_gmt":"2016-07-30T20:47:16","slug":"%e7%8f%be%e5%9c%a8%e5%b1%9e%e3%81%97%e3%81%a6%e3%81%84%e3%82%8b%e8%a8%98%e4%ba%8b%e3%81%ae%e6%8c%87%e5%ae%9a%e3%81%97%e3%81%9f%e8%a6%aa%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%81%ab%e5%b1%9e%e3%81%99","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e7%8f%be%e5%9c%a8%e5%b1%9e%e3%81%97%e3%81%a6%e3%81%84%e3%82%8b%e8%a8%98%e4%ba%8b%e3%81%ae%e6%8c%87%e5%ae%9a%e3%81%97%e3%81%9f%e8%a6%aa%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%81%ab%e5%b1%9e%e3%81%99\/","title":{"rendered":"\u73fe\u5728\u5c5e\u3057\u3066\u3044\u308b\u8a18\u4e8b\u306e\u6307\u5b9a\u3057\u305f\u89aa\u30ab\u30c6\u30b4\u30ea\u306b\u5c5e\u3059\u308b\u5b50\u30ab\u30c6\u30b4\u30ea\u3092\u53d6\u5f97\u3059\u308b"},"content":{"rendered":"<p>\u3044\u3064\u3082\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u7d1b\u3089\u308f\u3057\u3044\u306e\u3067\u3059\u304c\u3001<br \/>\n\u3010\u73fe\u5728\u5c5e\u3057\u3066\u3044\u308b\u8a18\u4e8b\u306e\u3000\u6307\u5b9a\u3057\u305f\u89aa\u30ab\u30c6\u30b4\u30ea\u306b\u3000\u5c5e\u3059\u308b\u5b50\u30ab\u30c6\u30b4\u30ea\u306e\u3000\u30b9\u30e9\u30c3\u30b0\u3092\u53d6\u5f97\u3059\u308b\u3011<br \/>\n\u3068\u3044\u3046\u65b9\u6cd5\u304c\u5206\u304b\u3089\u305a\u306b\u3044\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30c6\u30b4\u30eaA<br \/>\n\u251c\u30ab\u30c6\u30b4\u30eaa1<br \/>\n\u251c\u30ab\u30c6\u30b4\u30eaa2<br \/>\n\u251c\u30ab\u30c6\u30b4\u30eaa3<br \/>\n\u30ab\u30c6\u30b4\u30eaB<br \/>\n\u251c\u30ab\u30c6\u30b4\u30eab1<br \/>\n\u251c\u30ab\u30c6\u30b4\u30eab2<br \/>\n\u251c\u30ab\u30c6\u30b4\u30eab3<br \/>\n\u30ab\u30c6\u30b4\u30eaC<br \/>\n\u30ab\u30c6\u30b4\u30eaD<\/p>\n<p>\u3068\u6709\u308b\u4e2d\u3067\u3001\u73fe\u5728\u306e\u30ab\u30c6\u30b4\u30eaB\u306e\u5b50\u30ab\u30c6\u30b4\u30ea\u3092\u30b9\u30e9\u30c3\u30b0\u3067\u53d6\u5f97\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001<br \/>\n\u8272\u3005\u8a66\u3057\u3001\u30d5\u30a9\u30fc\u30e9\u30e0\u3092\u8aad\u307f\u3042\u3055\u3063\u305f\u7d50\u679c\u5206\u304b\u3089\u305a\u306b\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u73fe\u5728\u8fd1\u3044\u72b6\u614b\u307e\u3067\u884c\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3046\u307e\u304f\u3044\u304b\u306a\u3063\u305f\u3084\u308a\u65b9\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<br \/>\n==================<\/p>\n<p>    &lt;?php foreach(get_the_category() as $category) {<br \/>\n       if ($category-&gt;parent == 15) {<br \/>\n          $categories_to_put[] = $category-&gt;term_id;<br \/>\n       }<br \/>\n    }?&gt;<br \/>\n    &lt;?php query_posts( array(&#8216;category__in&#8217; =&gt; $categories_to_put, &#8216;showposts&#8217; =&gt; 5,&#8217;orderby&#8217; =&gt; &#8216;date&#8217;, &#8216;post__not_in&#8217; =&gt; array($post-&gt;ID)) ); ?&gt;<\/p>\n<p>[&#8230;..\u30eb\u30fc\u30d7\u30b3\u30fc\u30c9&#8230;&#8230;.]<\/p>\n<p>    &lt;\/div&gt;<br \/>\n    &lt;?php<br \/>\n    foreach($categories as $category) :<br \/>\n        if(cat_is_ancestor_of(15, $category))<br \/>\n        echo &#8216;&lt;p&gt;<a>slug.&#8217;\/&#8217;. $category -&gt;  slug .'&#8221; title=&#8221;&#8216;. $category -&gt;  cat_name . &#8216;&#8221;&gt;&#8217;. $category -&gt;  cat_name .&#8217;  &gt; <\/a>&lt;p&gt;&#8217;;<br \/>\n        endforeach;<br \/>\n    ?&gt;<br \/>\n    &lt;?php wp_reset_query(); ?&gt;<\/p>\n<p>====================<\/p>\n<p>1\u3064\u306e\u6295\u7a3f\u306b\u305f\u3044\u3057\u3066\u540c\u4e00\u89aa\u30ab\u30c6\u30b4\u30ea\u30fc\u3067\u8907\u6570\u306e\u5b50\u30ab\u30c6\u30b4\u30ea\u304c\u9078\u629e\u3055\u308c\u308b\u30b1\u30fc\u30b9\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u7121\u99c4\u306e\u591a\u3044\u30b3\u30fc\u30c9\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3054\u6559\u6388\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3069\u3046\u305e\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"template":"","class_list":["post-176630","topic","type-topic","status-closed","hentry","topic-tag-14443"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/176630","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\/176630\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=176630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}