{"id":641,"date":"2017-03-22T22:41:56","date_gmt":"2017-03-22T13:41:56","guid":{"rendered":"http:\/\/www.clarenet.co.jp\/column\/engineer\/?p=641"},"modified":"2017-03-22T22:41:56","modified_gmt":"2017-03-22T13:41:56","slug":"wp%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%b9%e3%83%8b%e3%83%9a%e3%83%83%e3%83%88%e9%9b%86%e3%80%80%e5%85%b6%e3%81%ae%e4%b8%80","status":"publish","type":"post","link":"https:\/\/4koma-web.com\/coding\/wp%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%b9%e3%83%8b%e3%83%9a%e3%83%83%e3%83%88%e9%9b%86%e3%80%80%e5%85%b6%e3%81%ae%e4%b8%80\/","title":{"rendered":"WP:\u30ab\u30b9\u30bf\u30e0\u30b9\u30cb\u30da\u30c3\u30c8\u96c6\u3000\u5176\u306e\u4e00"},"content":{"rendered":"<p>\u5236\u4f5c\u30e1\u30e2\u3068\u3057\u3066\u3001\u30c6\u30fc\u30de\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306b\u983b\u51fa\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u96c6\u3092\u3053\u3053\u306b\u8a18\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u30ab\u30c6\u30b4\u30ea\u30fc\u3001\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306e\u4e00\u89a7\u8868\u793a\u306b\u3064\u3044\u3066\u3002<\/p>\n<p>\uff11\uff0e\u300c\u5b50\u30ab\u30c6\u30b4\u30ea\u30fc\u307e\u3067\u542b\u3081\u305f\u30ab\u30c6\u30b4\u30ea\u30fc\u4e00\u89a7\u306e\u51fa\u529b\u300d<\/p>\n<pre class=\"lang:default decode:true \" >&lt;?php $children = get_category_children($cat); ?&gt;\n              &lt;?php if($children) : ?&gt;\n\n                &lt;?php\n                $cats_id = get_category_by_slug($category_name)-&gt;term_id;\n                $args = array('orderby' =&gt; 'name', 'order' =&gt; 'ASC','child_of' =&gt; $cats_id,'hide_empty'=&gt;'0' );\n                $categories = get_categories($args); ?&gt;\n\n                &lt;ul&gt;\n                &lt;?php foreach($categories as $category){\n                   echo '&lt;li&gt;&lt;a class=\"style01\" href=\"' . get_category_link( $category-&gt;term_id ) . '\" title=\"' . $category-&gt;name . '\" ' . '&gt;' . $category-&gt;name . '\uff08' .$category-&gt;count . '\uff09' .'&lt;\/a&gt;&lt;\/li&gt;';\n                } ?&gt;\n                &lt;\/ul&gt;<\/pre>\n<p>\uff12\uff0e\u300c\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306e\u30bf\u30fc\u30e0\u4e00\u89a7\u306e\u51fa\u529b\u300d<\/p>\n<pre class=\"lang:default decode:true \" >&lt;ul&gt;&lt;?php wp_list_categories(array('title_li' =&gt; '', 'taxonomy' =&gt; '\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u540d','hide_empty' =&gt; 0)); ?&gt;&lt;\/ul&gt;<\/pre>\n<p>\uff13\uff0e\u300c\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3067\u5b50\u30ab\u30c6\u30b4\u30ea\u30fc\u4e00\u89a7\u3092\u51fa\u529b\u300d<\/p>\n<pre class=\"lang:default decode:true \" >&lt;?php\n  $categories = get_terms( '\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u540d', 'hide_empty=0&amp;parent=' . get_queried_object_id() );\n  if($categories) {\n?&gt;\n  &lt;ul&gt;\n&lt;?php\n    foreach($categories as $value):\n?&gt;\n    &lt;li&gt;&lt;a href=\"&lt;?php echo get_term_link($value); ?&gt;\"&gt;&lt;?php echo $value-&gt;name . \"(\" . $value-&gt;count . \")\"; ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n&lt;?php endforeach;\n    } ?&gt;\n  &lt;\/ul&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5236\u4f5c\u30e1\u30e2\u3068\u3057\u3066\u3001\u30c6\u30fc\u30de\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306b\u983b\u51fa\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u96c6\u3092\u3053\u3053\u306b\u8a18\u3057\u307e\u3059\u3002 \u4eca\u56de\u306f\u30ab\u30c6\u30b4\u30ea\u30fc\u3001\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306e\u4e00\u89a7\u8868\u793a\u306b\u3064\u3044\u3066\u3002 \uff11\uff0e\u300c\u5b50\u30ab\u30c6\u30b4\u30ea\u30fc\u307e\u3067\u542b\u3081\u305f\u30ab\u30c6\u30b4\u30ea\u30fc\u4e00\u89a7\u306e\u51fa\u529b\u300d &lt;?php $childre [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":612,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[1],"tags":[],"publishpress_future_action":{"enabled":false,"date":"2026-04-21 23:55:09","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category"},"_links":{"self":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/posts\/641"}],"collection":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/comments?post=641"}],"version-history":[{"count":0,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/posts\/641\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/media\/612"}],"wp:attachment":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/media?parent=641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/categories?post=641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/tags?post=641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}