{"id":8727,"date":"2022-04-24T03:47:28","date_gmt":"2022-04-23T18:47:28","guid":{"rendered":"https:\/\/www.stuffy.site\/computers\/?p=8727"},"modified":"2022-04-26T12:09:57","modified_gmt":"2022-04-26T03:09:57","slug":"wordpress%e3%81%ae%e3%82%a2%e3%83%bc%e3%82%ab%e3%82%a4%e3%83%96%e8%a1%a8%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/www.stuffy.site\/computers\/archives\/8727","title":{"rendered":"WordPress\u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u8868\u793a"},"content":{"rendered":"\n<p>\u203b <a href=\"https:\/\/www.amazon.co.jp\/gp\/product\/4844366580\/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;psc=1\">WordPress\u30e6\u30fc\u30b6\u30fc\u306e\u305f\u3081\u306ePHP\u5165\u9580 \u306f\u3058\u3081\u304b\u3089\u3001\u3066\u3044\u306d\u3044\u306b\u3002[\u7b2c2\u7248]<\/a> \u306e\u30b5\u30f3\u30d7\u30eb\u30c6\u30fc\u30de\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30ab\u30ec\u30f3\u30c0\u30fc\u3084\u30ab\u30c6\u30b4\u30ea\u30fc\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306b\u6708\u5225\u3001\u30ad\u30fc\u30ef\u30fc\u30c9\u5225\u306b\u6295\u7a3f\u3092\u8868\u793a\u3059\u308b\u30a2\u30fc\u30ab\u30a4\u30d6\u6a5f\u80fd\u3092\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5143\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u30ec\u30c3\u30c4\u30c8\u30e9\u30a4\uff01<\/p>\n\n\n\n<!--more-->\n\n\n<pre><span style=\"color: #0000ff; font-size: 14pt;\">archive.php<\/span><br>\nif ( have_posts() ) :\n    <span style=\"color: #ff0000;\">$post_count = 0;\n    <span style=\"color: #000000;\">while ( have_posts() ) : the_post();<\/span>\n        <span style=\"color: #ff0000;\">$post_count++;\n        if ( $post_count &lt;= 1 ) {\n            $more = 1;\n        } else {\n            $more = 0;\n        }<\/span>\n        <span style=\"color: #000000;\">get_template_part( 'content' );\n    endwhile;<\/span><\/span><\/pre>\n\n\n<p>\u307e\u305a\u3001\u6295\u7a3f\u6570\u306e\u30ab\u30a6\u30f3\u30c8\u3092\u30bc\u30ed\u30af\u30ea\u30a2\u3057\u3066<\/p>\n\n\n<pre><span style=\"font-size:11pt\">$post_count = 0;<\/span><\/pre>\n\n\n<p>\u6295\u7a3f\u3092\u8868\u793a\u3059\u308b\u305f\u3073\u30ab\u30a6\u30f3\u30c8\u6570\u3092\uff11\u3064\u3065\u3064\u5897\u3084\u3057\u3066<\/p>\n\n\n<pre><span style=\"font-size:11pt\">$post_count++;<\/span><\/pre>\n\n\n<p>\u6295\u7a3f\u304c\u4e00\u3064\u4ee5\u4e0b\uff08\u6700\u521d\u306e\u6295\u7a3f\uff09\u306a\u3089$more\u30d5\u30e9\u30b0\u3092\u7acb\u3066\u3066\u5168\u6587\u8868\u793a\u3001\u4e00\u3064\u4ee5\u4e0a\u3042\u308b\u306a\u3089\u30d5\u30e9\u30b0\u56de\u53ce\u3001\u975e\u8868\u793a\u306b\u3059\u308b if \u6587\u306b\u3088\u308b\u6761\u4ef6\u5206\u5c90\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<pre><span style=\"font-size:11pt\">if ( $post_count &lt;= 1 ) {<\/span><\/pre>\n\n\n<p>\u300a\u7d9a\u304d\u3092\u8aad\u3080\u300b\u30bf\u30b0\u304c\u306a\u3044\u5834\u5408\u306f\u8a18\u4e8b\u304c\u5168\u6587\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u904e\u53bb\u8a18\u4e8b\u3059\u3079\u3066\u306b\u624b\u52d5\u3067\u30bf\u30b0\u3092\u633f\u5165\u3057\u3066\u75b2\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3001\u6700\u8fd1\u306e\u30c6\u30fc\u30de(TwentyTwenty, TwentyTwentyOne)\u3067\u306f\u65e2\u5b9a\u3067\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u30c0\u30a4\u30b8\u30a7\u30b9\u30c8\u8868\u793a\u3059\u308b\u306e\u3067\u30c6\u30fc\u30de\u306b\u62d8\u3089\u306a\u3051\u308c\u3070\u3001\u3042\u3048\u3066\u300a\u7d9a\u304d\u3092\u8aad\u3080\u300b\u30bf\u30b0\u3092\u5165\u308c\u308b\u306e\u306f\u30b9\u30de\u30fc\u30c8\u3067\u306f\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<\/p>\n\n\n\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u203b WordPress\u30e6\u30fc\u30b6\u30fc\u306e\u305f\u3081\u306ePHP\u5165\u9580 \u306f\u3058\u3081\u304b\u3089\u3001\u3066\u3044\u306d\u3044\u306b\u3002[\u7b2c2\u7248] \u306e\u30b5\u30f3\u30d7\u30eb\u30c6\u30fc\u30de\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002 \u30ab\u30ec\u30f3\u30c0\u30fc\u3084\u30ab\u30c6\u30b4\u30ea\u30fc\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306b\u6708\u5225\u3001\u30ad\u30fc\u30ef\u30fc\u30c9\u5225\u306b\u6295\u7a3f\u3092\u8868\u793a\u3059\u308b\u30a2\u30fc\u30ab\u30a4\u30d6\u6a5f\u80fd\u3092\u30b5\u30f3\u30d7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35,4],"tags":[],"class_list":["post-8727","post","type-post","status-publish","format-standard","hentry","category-php","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/posts\/8727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/comments?post=8727"}],"version-history":[{"count":4,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/posts\/8727\/revisions"}],"predecessor-version":[{"id":8794,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/posts\/8727\/revisions\/8794"}],"wp:attachment":[{"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/media?parent=8727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/categories?post=8727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/tags?post=8727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}