{"id":1607,"date":"2018-11-30T10:30:29","date_gmt":"2018-11-30T01:30:29","guid":{"rendered":"http:\/\/4koma-web.com\/coding\/?p=1607"},"modified":"2018-12-02T19:44:21","modified_gmt":"2018-12-02T10:44:21","slug":"1607-2","status":"publish","type":"post","link":"https:\/\/4koma-web.com\/coding\/1607-2\/","title":{"rendered":"\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u30da\u30fc\u30b8\u3067\u4e00\u756a\u4e0b\u306e\u5b50\u5b6b\u8981\u7d20\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/4koma-web.com\/coding\/wp-content\/uploads\/2018\/11\/blog_003.jpg\" alt=\"\" width=\"700\" height=\"460\" class=\"alignnone size-full wp-image-1602\" \/><\/p>\n<p>\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u30da\u30fc\u30b8\u3067\u5b50\u5b6b\u8981\u7d20\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u304c\u6d3b\u7528\u3067\u304d\u308b\u5834\u9762\u306f<\/p>\n<p>\uff08\u4f8b\uff09<br \/>\n\u8eca<br \/>\n\u2193<br \/>\n\u2192\u8efd\u81ea\u52d5\u8eca,\u666e\u901a\u81ea\u52d5\u8eca,\u5927\u578b\u81ea\u52d5\u8eca,<br \/>\n\u2193<br \/>\n-\u2192\u30e1\u30fc\u30ab\u30fc\uff21\uff0c\u30e1\u30fc\u30ab\u30fcB\uff0c\u30e1\u30fc\u30ab\u30fcC,&#8230;<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u8efd\u81ea\u52d5\u8eca\u4e00\u89a7\u306e\u30da\u30fc\u30b8\u3067\u3001\u30e1\u30fc\u30ab\u30fc\u5225\u306b\u8efd\u81ea\u52d5\u8eca\u306e\u30da\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u5408\u306b\u3001<br \/>\n\u30e1\u30fc\u30ab\u30fc\u4e00\u89a7\u306e\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a\u3067\u304d\u3001\u30e1\u30fc\u30ab\u30fc\u5225\u306b\u4e00\u89a7\u3092\u8868\u793a\u3057\u305f\u969b\u306b\u3082\u3001\u30e1\u30fc\u30ab\u30fc\u4e00\u89a7\u3092\u8868\u793a\u3057\u305f\u307e\u307e\u306b\u3067\u304d\u308b\u70b9\u3067\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u3001\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001<br \/>\n\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u30da\u30fc\u30b8\u3067\u5b50\u5b6b\u8981\u7d20\u3001\u3053\u3053\u3067\u306f\uff08\u30e1\u30fc\u30ab\u30fc\uff21\uff0c\u30e1\u30fc\u30ab\u30fcB\uff0c\u30e1\u30fc\u30ab\u30fcC,&#8230;\uff09\u306a\u3069\u306e\u4e00\u756a\u4e0b\u306e\u8981\u7d20\u3067\u3001<br \/>\n\u5e38\u306b\u8868\u793a\u3055\u305b\u3066\u304a\u304f\u304a\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\t\r\n<?php \/\/ \u30bf\u30fc\u30e0ID\u306e\u53d6\u5f97\u3068\u8868\u793a\r\n\t\/\/\u73fe\u5728\u306e\u30bf\u30fc\u30e0\u306eid\u3092\u53d6\u5f97\r\n\t$taxonomy_name = 'work-cat';\r\n\t$term_id = get_queried_object()->term_id;\r\n\t$terms = get_terms(\"work-cat\",\"include=\".$term_id);\r\n\t$childs = get_term_children( $term_id, $taxonomy_name );\r\n\r\n\tif(count($childs) > 0){\r\n\t\t$parent_id = $term_id;\r\n\t}else{\r\n\t\t$parent_id = $terms[0]->parent;\r\n\t}\r\n\r\n\r\n\t$termchildren = get_term_children( $parent_id, $taxonomy_name );\r\n\r\n\techo '<ul class=\"cat-nav\">';\r\n\tforeach ( $termchildren as $child ) {\r\n\t\t$term = get_term_by( 'id', $child, $taxonomy_name );\r\n\t\techo '<li><a href=\"' . get_term_link( $child, $taxonomy_name ) . '\">' . $term->name . '<\/a><\/li>';\r\n\t}\r\n\techo '<\/ul>';\r\n\t?>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u30da\u30fc\u30b8\u3067\u5b50\u5b6b\u8981\u7d20\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u3053\u308c\u304c\u6d3b\u7528\u3067\u304d\u308b\u5834\u9762\u306f \uff08\u4f8b\uff09 \u8eca \u2193 \u2192\u8efd\u81ea\u52d5\u8eca,\u666e\u901a\u81ea\u52d5\u8eca,\u5927\u578b\u81ea\u52d5\u8eca, \u2193 -\u2192\u30e1\u30fc\u30ab\u30fc\uff21\uff0c\u30e1\u30fc\u30ab\u30fcB\uff0c\u30e1\u30fc\u30ab\u30fcC,&#8230; \u4f8b\u3048\u3070\u3001\u8efd\u81ea\u52d5\u8eca\u4e00\u89a7\u306e\u30da\u30fc\u30b8\u3067\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"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:28:11","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category"},"_links":{"self":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/posts\/1607"}],"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=1607"}],"version-history":[{"count":0,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/posts\/1607\/revisions"}],"wp:attachment":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/media?parent=1607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/categories?post=1607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/tags?post=1607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}