{"id":1017,"date":"2017-10-31T17:12:47","date_gmt":"2017-10-31T08:12:47","guid":{"rendered":"http:\/\/4koma-web.com\/coding\/?p=1017"},"modified":"2017-10-31T17:19:06","modified_gmt":"2017-10-31T08:19:06","slug":"wp-%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%81%ab%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%a3%e3%83%bc%e3%81%a8%e7%8f%be%e5%9c%a8%e3%83%9a%e3%83%bc%e3%82%b8%e4%bd%8d%e7%bd%ae%e3%82%92%e8%a1%a8%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/4koma-web.com\/coding\/wp-%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%81%ab%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%a3%e3%83%bc%e3%81%a8%e7%8f%be%e5%9c%a8%e3%83%9a%e3%83%bc%e3%82%b8%e4%bd%8d%e7%bd%ae%e3%82%92%e8%a1%a8%e7%a4%ba\/","title":{"rendered":"wp \u8a18\u4e8b\u4e00\u89a7\u306b\u30da\u30fc\u30b8\u30e3\u30fc\u3068\u73fe\u5728\u30da\u30fc\u30b8\u4f4d\u7f6e\u3092\u8868\u793a"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/4koma-web.com\/coding\/wp-content\/uploads\/2017\/10\/897d497be44daaad658d516ba305408b_s.jpg\" alt=\"\" width=\"640\" height=\"480\" class=\"alignnone size-full wp-image-1018\" \/><br \/>\n\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u30da\u30fc\u30b8\u306b\u8a18\u4e8b\u4e00\u89a7\u3084\u5546\u54c1\u4e00\u89a7\u306a\u3069\u3001\u6295\u7a3f\u3057\u305f\u30da\u30fc\u30b8\u3092\u4e00\u89a7\u8868\u793a\u3057\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30da\u30fc\u30b8\u306e\u7d39\u4ecb\u3092\u3057\u307e\u3059\u3002<br \/>\n\u8a18\u4e8b\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u30da\u30fc\u30b8\u30e3\u30fc\u3068\u73fe\u5728\u306e\u30da\u30fc\u30b8\u4f4d\u7f6e\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u3068\u3063\u3066\u3082\u5229\u7528\u3057\u3084\u3059\u3044\u30da\u30fc\u30b8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306a\u8a18\u4e8b\u4e00\u89a7\u30da\u30fc\u30b8\u306e\u88fd\u4f5c\u306e\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305apage-\u25cb\u25cb.php\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u3001\u8a18\u4e8b\u4e00\u89a7\u3092\u4f5c\u6210\u3057\u4e0b\u8a18\u3092\u8a18\u8ff0<\/p>\n<p>&lt;!&#8211;\u30a2\u30fc\u30ab\u30a4\u30d6&#8211;&gt;<\/p>\n<p>&lt;div id=&#8221;list_box&#8221;&gt;<br \/>\n&lt;?php<br \/>\n$paged = (int) get_query_var(&#8216;paged&#8217;);<br \/>\n$args = array(<br \/>\n&#8216;posts_per_page&#8217; =&gt; 24,<br \/>\n&#8216;paged&#8217; =&gt; $paged,<br \/>\n&#8216;orderby&#8217; =&gt; &#8216;post_date&#8217;,<br \/>\n&#8216;order&#8217; =&gt; &#8216;DESC&#8217;,<br \/>\n&#8216;post_type&#8217; =&gt; &#8216;post&#8217;,<br \/>\n&#8216;post_status&#8217; =&gt; &#8216;publish&#8217;<br \/>\n);<br \/>\n$the_query = new WP_Query($args);<br \/>\nif ( $the_query-&gt;have_posts() ) :<br \/>\nwhile ( $the_query-&gt;have_posts() ) : $the_query-&gt;the_post();<br \/>\n?&gt;<br \/>\n&lt;div class=&#8221;post_list&#8221;&gt;<br \/>\n&lt;p&gt;&lt;?php the_post_thumbnail(&#8216;thumbnail&#8217;); ?&gt;&lt;\/p&gt;<br \/>\n&lt;p class=&#8221;post_title&#8221;&gt;&lt;a href=&#8221;&lt;?php the_permalink(); ?&gt;&#8221;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/p&gt;<br \/>\n&lt;div class=&#8221;post_text&#8221;&gt;&lt;?php the_excerpt(); ?&gt;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;?php endwhile; endif; ?&gt;<br \/>\n&lt;div id=&#8221;pager&#8221;&gt;<br \/>\n&lt;?php<br \/>\nif ($the_query-&gt;max_num_pages &gt; 1) {<br \/>\necho paginate_links(array(<br \/>\n&#8216;base&#8217; =&gt; get_pagenum_link(1) . &#8216;%_%&#8217;,<br \/>\n&#8216;format&#8217; =&gt; &#8216;page\/%#%\/&#8217;,<br \/>\n&#8216;current&#8217; =&gt; max(1, $paged),<br \/>\n&#8216;total&#8217; =&gt; $the_query-&gt;max_num_pages<br \/>\n));<br \/>\n}<br \/>\n?&gt;<br \/>\n&lt;?php wp_reset_postdata(); ?&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;!&#8211;\u30a2\u30fc\u30ab\u30a4\u30d6&#8211;&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p>\u73fe\u5728\u306e\u30da\u30fc\u30b8\u4f4d\u7f6e\u3092&lt;!&#8211;\u30a2\u30fc\u30ab\u30a4\u30d6&#8211;&gt;\u306e\u4e0b\u306b\u8a18\u8ff0\u3057\u307e\u3059<\/p>\n<p>&lt;p class=&#8221;page-area&#8221;&gt;<br \/>\n&lt;?php show_page_number(&#8221;); ?&gt;<br \/>\n&lt;?php<br \/>\nprintf( esc_html__( &#8216;\u30da\u30fc\u30b8\/\u5168&#8217;), get_search_query() );<br \/>\necho &#8221;, $the_query-&gt;max_num_pages, &#8216; \u30da\u30fc\u30b8\u4e2d&#8217;;<br \/>\n?&gt;<br \/>\n&lt;\/p&gt;<\/p>\n<p>class=&#8221;page-area&#8221;\u306fposition\u3067\u4f4d\u7f6e\u8abf\u6574\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u30da\u30fc\u30b8\u306b\u8a18\u4e8b\u4e00\u89a7\u3084\u5546\u54c1\u4e00\u89a7\u306a\u3069\u3001\u6295\u7a3f\u3057\u305f\u30da\u30fc\u30b8\u3092\u4e00\u89a7\u8868\u793a\u3057\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30da\u30fc\u30b8\u306e\u7d39\u4ecb\u3092\u3057\u307e\u3059\u3002 \u8a18\u4e8b\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u30da\u30fc\u30b8\u30e3\u30fc\u3068\u73fe\u5728\u306e\u30da\u30fc\u30b8\u4f4d\u7f6e\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u3068\u3063\u3066\u3082\u5229\u7528 [&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:07:33","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category"},"_links":{"self":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/posts\/1017"}],"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=1017"}],"version-history":[{"count":0,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/posts\/1017\/revisions"}],"wp:attachment":[{"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/media?parent=1017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/categories?post=1017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/4koma-web.com\/coding\/wp-json\/wp\/v2\/tags?post=1017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}