{"id":227154,"date":"2018-05-12T22:23:18","date_gmt":"2018-05-12T13:23:18","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/topic\/%e3%82%bf%e3%83%bc%e3%83%a0%e3%81%ae%e4%b8%80%e8%a6%a7%e8%a1%a8%e7%a4%ba%e3%81%a7%e3%81%ae%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%8a%e3%83%93\/"},"modified":"2018-05-12T22:23:18","modified_gmt":"2018-05-12T13:23:18","slug":"%e3%82%bf%e3%83%bc%e3%83%a0%e3%81%ae%e4%b8%80%e8%a6%a7%e8%a1%a8%e7%a4%ba%e3%81%a7%e3%81%ae%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%8a%e3%83%93","status":"publish","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e3%82%bf%e3%83%bc%e3%83%a0%e3%81%ae%e4%b8%80%e8%a6%a7%e8%a1%a8%e7%a4%ba%e3%81%a7%e3%81%ae%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%8a%e3%83%93\/","title":{"rendered":"\u30bf\u30fc\u30e0\u306e\u4e00\u89a7\u8868\u793a\u3067\u306e\u30da\u30fc\u30b8\u30ca\u30d3"},"content":{"rendered":"<p>\u8cea\u554f\u5931\u793c\u3057\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5728\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u306e\u30bf\u30fc\u30e0\u306e\u4e00\u89a7\u30da\u30fc\u30b8\u3092\u4f5c\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u30da\u30fc\u30b8\u30ca\u30d3\u304c\u3069\u3046\u3057\u3066\u3082\u4e0a\u624b\u304f\u52d5\u3044\u3066\u304f\u308c\u307e\u305b\u3093\u3002<br \/>\n\u75c7\u72b6\u3068\u3057\u307e\u3057\u3066\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u2460URL\u306fhttp:\/\/shitsumon.co.jp\/sample_cat\/red\/page\/2\u306b\u306a\u3063\u3066\u3044\u308b\u304c1\u30da\u30fc\u30b8\u76ee\u304c\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n\u2461\u8a18\u4e8b\u306f\u5168\u90e8\u306712\u500b\u306a\u306e\u30673\u30da\u30fc\u30b8\u76ee\u307e\u3067\u3057\u304b\u306a\u3044\u306f\u305a\u306a\u306e\u306b10\u30da\u30fc\u30b8\u76ee\u307e\u3067\u306e\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\n\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30da\u30fc\u30b8\u30ca\u30d3\u306b\u306fWp-Page-Navi\u3092\u4f7f\u7528\u3057\u3066\u304a\u308a\u307e\u3059\u3002<br \/>\n\u3069\u3053\u304b\u306bpaged\u3092\u8a18\u8ff0\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3069\u3053\u306b\u8a18\u8ff0\u3059\u308c\u3070\u3001\u3069\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308c\u3070\u3044\u3044\u306e\u304b\u308f\u304b\u3089\u306a\u3044\u72b6\u614b\u3067\u3059\u3002<\/p>\n<p>WordPress\u306e\u8a2d\u5b9a\u306f<br \/>\n1\u30da\u30fc\u30b8\u306b\u8868\u793a\u3059\u308b\u6700\u5927\u6295\u7a3f\u6570\u306f\u300c1\u300d<br \/>\n\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u8a2d\u5b9a\u306f\/%category%\/%postname%\/<br \/>\n\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u306e\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306fsample_cat<br \/>\n\u30bf\u30fc\u30e0\u306e\u30b9\u30e9\u30c3\u30b0\u306fred<br \/>\n\u3067\u3059\u3002<\/p>\n<p>\u30bd\u30fc\u30b9\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>taxonomy-sapmle_cat-red.php<\/p>\n<pre><code>\n&lt;ul&gt;\n&lt;?php\n$args = array(\n&#039;post_type&#039; =&gt; &#039;smaple&#039;,\n&#039;posts_per_page&#039; =&gt; 5,\n&#039;tax_query&#039; =&gt; array(\narray(\n&#039;taxonomy&#039; =&gt; &#039;sample_cat&#039;,\n&#039;field&#039; =&gt; &#039;slug&#039;,\n&#039;terms&#039; =&gt; &#039;red&#039;\n)\n)\n);\n\n$domestic_post = get_posts($args);\nif($domestic_post) : foreach($domestic_post as $post) : setup_postdata( $post ); ?&gt;\n&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title_attribute(); ?&gt;&quot;&gt;\n&lt;?php if( has_post_thumbnail() ): ?&gt;\n&lt;?php the_post_thumbnail( &#039;thumbnail&#039; ); ?&gt;\n&lt;?php else: ?&gt;\n&lt;img src=&quot;&lt;?php echo get_template_directory_uri(); ?&gt;\/images\/noimage.png&quot;&gt;\n&lt;?php endif; ?&gt;\n&lt;?php the_title(); ?&gt;\n&lt;?php the_excerpt(); ?&gt;\n&lt;\/a&gt;&lt;\/li&gt;\n&lt;?php endforeach; ?&gt;\n&lt;?php else : ?&gt;\n&lt;li&gt;\u8868\u793a\u3059\u308b\u8a18\u4e8b\u304c\u3042\u308a\u307e\u305b\u3093\u3002&lt;\/li&gt;\n&lt;?php endif;\nwp_reset_postdata(); ?&gt;\n&lt;\/ul&gt;\n\n&lt;?php if(function_exists(&#039;wp_pagenavi&#039;)) { wp_pagenavi(); } ?&gt;\n<\/code><\/pre>\n<p>\u3054\u5b58\u77e5\u306e\u65b9\u304c\u3044\u3089\u3063\u3057\u3083\u3044\u307e\u3057\u305f\u3089\u3054\u6559\u6388\u3044\u305f\u3060\u3051\u307e\u3059\u3068\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"template":"","class_list":["post-227154","topic","type-topic","status-publish","hentry","topic-tag-18656","topic-tag-16762","topic-tag-14840","topic-tag-page-navi"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/227154","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\/227154\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=227154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}