{"id":1279,"date":"2018-05-11T21:05:08","date_gmt":"2018-05-11T12:05:08","guid":{"rendered":"http:\/\/4koma-web.com\/coding\/?p=1279"},"modified":"2018-05-11T21:06:02","modified_gmt":"2018-05-11T12:06:02","slug":"%e5%90%8c%e3%81%98%e3%82%bf%e3%83%bc%e3%83%a0%e3%81%ae%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%82%92%e5%8f%96%e5%be%97","status":"publish","type":"post","link":"https:\/\/4koma-web.com\/coding\/%e5%90%8c%e3%81%98%e3%82%bf%e3%83%bc%e3%83%a0%e3%81%ae%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%82%92%e5%8f%96%e5%be%97\/","title":{"rendered":"\u540c\u3058\u30bf\u30fc\u30e0\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u53d6\u5f97"},"content":{"rendered":"<p>\u540c\u3058\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u306e\u540c\u3058\u30bf\u30fc\u30e0\u306e\u8a18\u4e8b\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u30a2\u30fc\u30ab\u30a4\u30d6\u30da\u30fc\u30b8\u4ee5\u5916\u3067page.php\u306a\u3069\u306b\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre>\r\n<?php\r\n global $post;\r\n $term = array_shift(get_the_terms($post->ID, '\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u540d')); \r\n $args = array(\r\n  'numberposts' => 5, \/\/(8\u4ef6\u8868\u793a\u306e\u5834\u5408)\r\n  'post_type' => '\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u540d', \/\/\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u540d\r\n  'taxonomy' => '\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u540d', \/\/\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u540d\r\n  'term' => $term->slug, \/\/\u30bf\u30fc\u30e0\u540d \r\n  'post__not_in' => array($post->ID)\r\n );\r\n?>\r\n<?php $myPosts = get_posts($args); if($myPosts) : ?>\r\n<?php foreach($myPosts as $post) : setup_postdata($post); ?>\r\n <p><a href=\"<?php the_permalink(); ?>\"><?php the_post_thumbnail('thumbnail'); ?><?php the_title(); ?><\/a><\/p>\r\n<?php endforeach; ?>\r\n<?php else : ?>\r\n <p>\u6295\u7a3f\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093<\/p>\r\n<?php endif; wp_reset_postdata(); ?>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u540c\u3058\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u306e\u540c\u3058\u30bf\u30fc\u30e0\u306e\u8a18\u4e8b\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u30a2\u30fc\u30ab\u30a4\u30d6\u30da\u30fc\u30b8\u4ee5\u5916\u3067page.php\u306a\u3069\u306b\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/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-30 19:25:14","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category"},"_links":{"self":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/posts\/1279"}],"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=1279"}],"version-history":[{"count":0,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/posts\/1279\/revisions"}],"wp:attachment":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/media?parent=1279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/categories?post=1279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/tags?post=1279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}