{"id":7087,"date":"2024-08-29T15:05:40","date_gmt":"2024-08-29T06:05:40","guid":{"rendered":"https:\/\/wpmake.jp\/contents\/?post_type=customize&#038;p=7087"},"modified":"2024-09-04T12:56:48","modified_gmt":"2024-09-04T03:56:48","slug":"about_the_loop_in_wordpress","status":"publish","type":"customize","link":"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/","title":{"rendered":"WordPress\u306e\u30eb\u30fc\u30d7\u3068\u306f\uff1f\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u30fb\u30b5\u30d6\u30eb\u30fc\u30d7\u30fb\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u306e\u69cb\u9020\u30fb\u4f7f\u3044\u65b9\u3092\u89e3\u8aac"},"content":{"rendered":"<p>\u30eb\u30fc\u30d7\u3068\u306fPHP\u3084Java\u7b49\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306b\u304a\u3044\u3066\u3001\u6307\u5b9a\u3055\u308c\u305f\u56de\u6570\u5206\u3084\u7279\u5b9a\u306e\u6761\u4ef6\u4e0b\u306b\u3042\u308b\u9593\u3001\u51e6\u7406\u3092\u5b9f\u884c\u3057\u7d9a\u3051\u308b\u3053\u3068\u3067\u3059\u3002 \u4eca\u56de\u306fPHP\u306b\u304a\u3051\u308b\u30eb\u30fc\u30d7\u306e\u57fa\u672c\u6982\u5ff5\u304b\u3089\u3001WordPress\u3067\u7528\u3044\u3089\u308c\u308b\u30eb\u30fc\u30d7\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #282828;color:#282828\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #282828;color:#282828\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#PHP%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B%E3%83%AB%E3%83%BC%E3%83%97%E3%81%A8%E3%81%AF\" >PHP\u306b\u304a\u3051\u308b\u30eb\u30fc\u30d7\u3068\u306f<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#for%E6%96%87\" >for\u6587<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#foreach%E6%96%87\" >foreach\u6587<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#while%E6%96%87\" >while\u6587<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#WordPress%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B%E3%83%AB%E3%83%BC%E3%83%97%E3%81%A8%E3%81%AF\" >WordPress\u306b\u304a\u3051\u308b\u30eb\u30fc\u30d7\u3068\u306f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%AB%E3%83%BC%E3%83%97%E3%81%A8%E3%81%AF\" >\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u3068\u306f<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AE%E8%A7%A3%E8%AA%AC\" >\u30b3\u30fc\u30c9\u306e\u89e3\u8aac<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#%E8%A1%A8%E7%A4%BA%E4%BB%B6%E6%95%B0%E3%81%AE%E8%A8%AD%E5%AE%9A%E6%96%B9%E6%B3%95\" >\u8868\u793a\u4ef6\u6570\u306e\u8a2d\u5b9a\u65b9\u6cd5<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#%E3%82%B5%E3%83%96%E3%83%AB%E3%83%BC%E3%83%97%E3%81%A8%E3%81%AF\" >\u30b5\u30d6\u30eb\u30fc\u30d7\u3068\u306f<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#WP_Query%E3%81%AE%E8%A7%A3%E8%AA%AC\" >WP_Query\u306e\u89e3\u8aac<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#%E3%82%AF%E3%82%A8%E3%83%AA%E3%83%AB%E3%83%BC%E3%83%97%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%81%A8%E3%81%AF\" >\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u3068\u306f<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#%E3%80%901%E3%80%91%E3%82%AF%E3%82%A8%E3%83%AA%E3%83%AB%E3%83%BC%E3%83%97%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B\" >\u30101\u3011\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#%E3%80%902%E3%80%91%E5%A4%96%E8%A6%B3%E3%82%92%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA%E3%81%99%E3%82%8B\" >\u30102\u3011\u5916\u89b3\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%83%84%E3%83%BC%E3%83%AB%E3%83%90%E3%83%BC\" >\u30d6\u30ed\u30c3\u30af\u30c4\u30fc\u30eb\u30d0\u30fc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#%E3%82%B5%E3%82%A4%E3%83%89%E3%83%90%E3%83%BC\" >\u30b5\u30a4\u30c9\u30d0\u30fc<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/wpmake.jp\/contents\/customize\/about_the_loop_in_wordpress\/#%E3%81%BE%E3%81%A8%E3%82%81\" >\u307e\u3068\u3081<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"PHP%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B%E3%83%AB%E3%83%BC%E3%83%97%E3%81%A8%E3%81%AF\"><\/span>PHP\u306b\u304a\u3051\u308b\u30eb\u30fc\u30d7\u3068\u306f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4eca\u56de\u306fWordPress\u3067\u4f7f\u7528\u3055\u308c\u308bPHP\u3068\u3044\u3046\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306b\u7d5e\u3063\u3066\u3001\u30eb\u30fc\u30d7\u306e\u57fa\u672c\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002 PHP\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u300c<a href=\"https:\/\/wpmake.jp\/contents\/knowledge\/about_php\/\">PHP\u3068\u306f\uff1fWordPress\u3067\u306e\u4f7f\u308f\u308c\u65b9\u3092\u89e3\u8aac<\/a>\u300d\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u307e\u305a\u3001PHP\u306e\u30eb\u30fc\u30d7\u306b\u304a\u3051\u308b\u3001\u4ee3\u8868\u7684\u306a3\u3064\u306e\u69cb\u6587\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059<\/p>\n<ul>\n<li>for\u6587<\/li>\n<li>foreach\u6587<\/li>\n<li>while\u6587<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"for%E6%96%87\"><\/span>for\u6587<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>for\u6587\u306e\u69cb\u9020\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\nfor (\u5f0f1; \u5f0f2; \u5f0f3) {\r\n    \/\/ \u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3059\u308b\u51e6\u7406\r\n}\r\n<\/pre>\n<p>for\u6587\u306e\u958b\u59cb\u6642\u306b\u5f0f1\u3092\u5b9f\u884c\u3057\u3001\u5f0f2\u304ctrue\u3060\u3063\u305f\u3089\u5f0f3\u3092\u5b9f\u884c\u3057\u3066\u30eb\u30fc\u30d7\u3092\u7d99\u7d9a\u3001false\u306e\u5834\u5408\u306f\u7d42\u4e86\u3057\u307e\u3059\u3002 \u5b9f\u969b\u306b\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u6570\u5024\u3092\u5f53\u3066\u306f\u3081\u3066\u8a55\u4fa1\u3059\u308b\u30b1\u30fc\u30b9\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<pre>\r\nfor ($i = 1; $i <= 10; $i++) {\r\n    echo $i;\r\n}\r\n\r\n\/\/ 12345678910\r\n<\/pre>\n<p>\u3053\u306e\u5834\u5408\u306f\u300c$i\u300d\u30921\u3068\u5b9a\u7fa9\u3057\u3001\u305d\u306e\u5024\u304c10\u306b\u306a\u308b\u307e\u3067\u306e\u9593\u3001\u30eb\u30fc\u30d7\u6bce\u306b\u300c$i\u300d\u306b1\u305a\u3064\u52a0\u7b97\u3057\u3001\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"foreach%E6%96%87\"><\/span>foreach\u6587<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>foreach\u6587\u306e\u69cb\u9020\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\nforeach (\u914d\u5217 as \u5909\u6570\u540d) {\r\n    \/\/ \u914d\u5217\u306e\u8981\u7d20\u3054\u3068\u306b\u884c\u3046\u51e6\u7406\r\n}\r\n<\/pre>\n<p>foreach \u306f\u3001\u914d\u5217\u306e\u8981\u7d20\u3092\u53cd\u5fa9\u51e6\u7406\u3059\u308b\u969b\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002 \u5b9f\u969b\u306b\u914d\u5217\u306b\u8981\u7d20\u3092\u5165\u529b\u3057\u3001\u51fa\u529b\u3057\u305f\u5834\u5408\u304c\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre>$nums = [1, 2, 3];\r\n$total = 10\r\n\r\nforeach ($nums as $num) {\r\n    $total += $num\r\n    echo $total;\r\n}\r\n\r\n\/\/ 16\r\n<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u300c$num\u300d\u306e\u914d\u5217\u5185\u306b1,2,3\u306e\u6570\u5b57\u3092\u5165\u308c\u3001\u3053\u308c3\u3064\u306e\u8981\u7d20\u3092\u300c$total\u300d\u3068\u8db3\u3057\u3066\u51fa\u529b\u3057\u307e\u3057\u305f\u3002 \u3053\u3053\u3067\u306f\u914d\u5217\u306e\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u9023\u60f3\u914d\u5217\u306b\u304a\u3044\u3066\u3082\u4f7f\u7528\u3067\u304d\u308b\u306e\u3067\u3001\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"while%E6%96%87\"><\/span>while\u6587<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>while\u30eb\u30fc\u30d7\u306f\u3001PHP\u3067\u6700\u3082\u7c21\u5358\u306a\u30bf\u30a4\u30d7\u306e\u30eb\u30fc\u30d7\u3067\u3059\u3002 \u4ee5\u4e0b\u306e\u3088\u3046\u306a\u69cb\u9020\u3067\u8a18\u8ff0\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>\r\n\u5f0f1;\r\nwhile (\u5f0f2) {\r\n    \u7e70\u308a\u8fd4\u3057\u3059\u308b\u51e6\u7406\r\n    \u5897\u6e1b\u5f0f\r\n}\r\n<\/pre>\n<p>\u5f0f1\u304c\u521d\u671f\u5316\u306e\u5f0f\u3001\u5f0f2\u304c\u6761\u4ef6\u5f0f\u306b\u306a\u308a\u307e\u3059\u3002\u5f0f\u306e\u6761\u4ef6\u304ctrue\u3067\u3042\u308c\u3070\u3001\u7121\u9650\u306b\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002 \u3053\u306e\u3088\u3046\u306a\u7121\u9650\u30eb\u30fc\u30d7\u306b\u9665\u308b\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u8ca0\u8377\u304c\u304b\u304b\u308a\u3001\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u6050\u308c\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u306e\u305f\u3081\u3001\u30eb\u30fc\u30d7\u5185\u3067\u5897\u6e1b\u5f0f\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u8a18\u8ff0\u4f8b\u304c\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre>\r\n$i = 0;\r\nwhile ($i < 5) {\r\n    echo $i;\r\n    $i++;\r\n}\r\n\r\n\/\/ 01234\r\n<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u300c$i\u300d\u306e\u521d\u671f\u5024\u30920\u3068\u3057\u30011~5\u307e\u3067\u306e\u7bc4\u56f2\u3067\u30eb\u30fc\u30d7\u6bce\u306b1\u305a\u3064\u52a0\u7b97\u3057\u51fa\u529b\u3055\u305b\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0a\u304c\u3001PHP\u306b\u304a\u3051\u308b\u4ee3\u8868\u7684\u306a\u30eb\u30fc\u30d7\u69cb\u6587\u306e\u7d39\u4ecb\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"WordPress%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B%E3%83%AB%E3%83%BC%E3%83%97%E3%81%A8%E3%81%AF\"><\/span>WordPress\u306b\u304a\u3051\u308b\u30eb\u30fc\u30d7\u3068\u306f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>WordPress\u306e\u30eb\u30fc\u30d7\u3068\u306f\u3001\u5236\u4f5c\u3057\u305f\u6295\u7a3f\u3092\u3001\u7e70\u308a\u8fd4\u3057\u753b\u9762\u306b\u8868\u793a\u3055\u305b\u308b\u969b\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002 \u305f\u3060\u8868\u793a\u3055\u305b\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u516c\u958b\u65e5\u3084\u66f4\u65b0\u65e5\u306a\u3069\u306e\u60c5\u5831\u3092\u3001\u4e00\u3064\u306e\u30b3\u30fc\u30c9\u3067\u7e70\u308a\u8fd4\u3057\u8868\u793a\u3067\u304d\u308b\u306e\u3067\u3001\u4e3b\u306b\u8a18\u4e8b\u4e00\u89a7\u30da\u30fc\u30b8\u3092\u5236\u4f5c\u3059\u308b\u969b\u306b\u91cd\u5b9d\u3055\u308c\u307e\u3059\u3002 \u3053\u306e\u30eb\u30fc\u30d7\u306b\u306f\u3001\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u3068\u30b5\u30d6\u30eb\u30fc\u30d7\u306e2\u7a2e\u985e\u5b58\u5728\u3057\u307e\u3059\u3002 \u3053\u308c\u3089\u306b\u3064\u3044\u3066\u3082\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%AB%E3%83%BC%E3%83%97%E3%81%A8%E3%81%AF\"><\/span>\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u3068\u306f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>WordPress\u306e\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u306f\u3001\u6295\u7a3f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u30eb\u30fc\u30d7\u3067\u3059\u3002 \u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u306e\u4e3b\u306a\u7279\u5fb4\u306f\u4ee5\u4e0b\u306e3\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u5fdc\u3058\u305f\u60c5\u5831\u306e\u307f\u53d6\u5f97\u3059\u308b<\/li>\n<li>\u57fa\u672c\u7684\u306b\u7d30\u304b\u3044\u6761\u4ef6\u306e\u6307\u5b9a\u304c\u3067\u304d\u306a\u3044<\/li>\n<li>1\u30da\u30fc\u30b8\u3042\u305f\u308a1\u56de\u307e\u3067\u4f7f\u7528\u53ef\u80fd<\/li>\n<\/ul>\n<p>\u300c.php\u300d\u5f62\u5f0f\u306e\u8a18\u4e8b\u306a\u3069\u306e\u6295\u7a3f\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3001\u6307\u5b9a\u3057\u305f\u60c5\u5831\u3092\u7e70\u308a\u8fd4\u3057\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3057\u304b\u3057\u3001\u6295\u7a3f\u306e\u53d6\u5f97\u6570\u3084\u3001\u4e26\u3073\u9806\u306a\u3069\u306e\u7d30\u304b\u3044\u6307\u5b9a\u306f\u3067\u304d\u307e\u305b\u3093\u3002 \u307e\u305f\u3001\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u3092\u8907\u6570\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u51fa\u6765\u306a\u3044\u305f\u3081\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u901a\u5e38\u306e\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n<?php if ( have_posts() ) : ?>\r\n  <?php while(have_posts()): the_post(); ?>\r\n\t\t\/\/\u7e70\u308a\u8fd4\u3057\u8868\u793a\u3055\u305b\u308b\u5185\u5bb9\u3092\u8a18\u8ff0\r\n  <?php endwhile; ?>\r\n<?php endif; ?>\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AE%E8%A7%A3%E8%AA%AC\"><\/span>\u30b3\u30fc\u30c9\u306e\u89e3\u8aac<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><?php if(have_posts()): ?><\/pre>\n<p>if\u6587\u3092\u4f7f\u3063\u305f\u6761\u4ef6\u5206\u5c90\u3067\u3059\u3002 have_posts()\u3067\u6295\u7a3f\u30c7\u30fc\u30bf\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u306e\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\n<?php while(have_posts()): the_post(); ?>\r\n  \/\/\u7e70\u308a\u8fd4\u3057\u8868\u793a\u3055\u305b\u305f\u3044\u5185\u5bb9\u3092\u8a18\u8ff0\r\n<?php endwhile; ?>\r\n<\/pre>\n<p>while\u6587\u3092\u4f7f\u3063\u305f\u30eb\u30fc\u30d7\u51e6\u7406\u3067\u3059\u3002 \u300chave_posts()\u300d\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u6295\u7a3f\u30c7\u30fc\u30bf\u304c\u5b58\u5728\u3059\u308b\u9593\u306f\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002 \u300cendwhile;\u300d\u30671\u56de\u3042\u305f\u308a\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u7d42\u4e86\u3055\u305b\u307e\u3059\u3002\u3053\u306e\u8a18\u8ff0\u3092\u5fd8\u308c\u308b\u3068\u6c38\u9060\u306b\u30eb\u30fc\u30d7\u3059\u308b\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u8a18\u4e8b\u306e\u66f4\u65b0\u65e5\u3001\u30bf\u30a4\u30c8\u30eb\u3092\u8868\u793a\u3055\u305b\u308b\u8a18\u8ff0\u4f8b\u304c\u3053\u3061\u3089\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\r\n<?php if ( have_posts() ) : ?>\r\n  <?php while(have_posts()): the_post(); ?>\r\n\t\t<article class=\"article\">\r\n      <a href=\"<?php the_permalink(); ?>\">\r\n        <time class=\"time\"><?php the_time( 'Y\/n\/j' ); ?><\/time>\r\n        <h2><?php the_title(); ?><\/h2>\r\n      <\/a>\r\n    <\/article>\r\n  <?php endwhile; ?>\r\n<?php endif; ?>\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%E8%A1%A8%E7%A4%BA%E4%BB%B6%E6%95%B0%E3%81%AE%E8%A8%AD%E5%AE%9A%E6%96%B9%E6%B3%95\"><\/span>\u8868\u793a\u4ef6\u6570\u306e\u8a2d\u5b9a\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5148\u307b\u3069\u3001\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u306b\u304a\u3044\u3066\u6295\u7a3f\u306e\u53d6\u5f97\u6570\u306f\u6307\u5b9a\u3067\u304d\u306a\u3044\u3068\u304a\u4f1d\u3048\u3057\u307e\u3057\u305f\u304c\u3001\u8868\u793a\u4ef6\u6570\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u3002 WordPress\u306e\u300c\u8a2d\u5b9a\u300d\u306e\u300c\u8868\u793a\u753b\u9762\u300d\u304b\u3089\u3001\u300c1\u30da\u30fc\u30b8\u306b\u8868\u793a\u3059\u308b\u6700\u5927\u6295\u7a3f\u6570\u300d\u306b\u4efb\u610f\u306e\u6570\u5b57\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress01.png\" alt=\"\u8868\u793a\u4ef6\u6570\u306e\u8a2d\u5b9a\u7b87\u6240\" width=\"800\" height=\"496\" class=\"alignnone size-full wp-image-7088\" srcset=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress01.png 800w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress01-300x186.png 300w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress01-768x476.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%82%B5%E3%83%96%E3%83%AB%E3%83%BC%E3%83%97%E3%81%A8%E3%81%AF\"><\/span>\u30b5\u30d6\u30eb\u30fc\u30d7\u3068\u306f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30b5\u30d6\u30eb\u30fc\u30d7\u306f\u3001\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u306e\u4e2d\u3067\u5225\u306e\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u3066\u3001\u7279\u5b9a\u306e\u6761\u4ef6\u306b\u5408\u3063\u305f\u6295\u7a3f\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u4f7f\u3044\u307e\u3059\u3002 \u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u3088\u308a\u3082\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u6027\u304c\u9ad8\u304f\u3001\u8907\u6570\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 \u30b5\u30d6\u30eb\u30fc\u30d7\u306e\u7279\u5fb4\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u81ea\u7531\u306b\u60c5\u5831\u3092\u53d6\u5f97\u53ef\u80fd<\/li>\n<li>\u7d30\u304b\u3044\u6761\u4ef6\u6307\u5b9a\u304c\u53ef\u80fd\uff08\u6295\u7a3f\u53d6\u5f97\u6570\u3001\u4e26\u3073\u9806\u306a\u3069\uff09<\/li>\n<li>\uff11\u30da\u30fc\u30b8\u3042\u305f\u308a\u4f55\u56de\u3067\u3082\u4f7f\u7528\u53ef\u80fd<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"WP_Query%E3%81%AE%E8%A7%A3%E8%AA%AC\"><\/span>WP_Query\u306e\u89e3\u8aac<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u30b5\u30d6\u30eb\u30fc\u30d7\u3067\u4e3b\u306b\u4f7f\u7528\u3055\u308c\u308b\u300cWP_Query\u300d\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002 WP_Query\u3068\u306f\u3001WordPress\u3067\u4f7f\u7528\u3055\u308c\u308b\u30af\u30e9\u30b9\u306e\u3053\u3068\u3067\u3001\u6295\u7a3f\u3084\u6295\u7a3f\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u969b\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002 \u6295\u7a3f\u306e\u8868\u793a\u9806\u5e8f\u3092\u6307\u5b9a\u3057\u305f\u308a\u3001\u7279\u5b9a\u306e\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u7d5e\u308a\u8fbc\u307f\u3001\u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u306e\u6295\u7a3f\u65e5\u6642\u306e\u3082\u306e\u3060\u3051\u3092\u53d6\u5f97\u3059\u308b\u306a\u3069\u3001\u5e45\u5e83\u3044\u7528\u9014\u3067\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002 \u57fa\u672c\u69cb\u9020\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre>\r\n<?php\r\n  $args = array(\r\n  \/\/\u8868\u793a\u3057\u305f\u3044\u8a18\u4e8b\u306e\u6761\u4ef6\u3092\u8a18\u8ff0\r\n  );\r\n  $the_query = new WP_Query($args);\r\n  if ($the_query->have_posts()) :   ?>\r\n  <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>\r\n  \/\/\u6295\u7a3f\u304c\u3042\u308b\u5834\u5408\u306b\u7e70\u308a\u8fd4\u3057\u8868\u793a\u3055\u305b\u305f\u3044\u5185\u5bb9\u3092\u8a18\u8ff0\r\n  <?php endwhile; ?>\r\n  <?php else : ?>\r\n  \/\/\u6295\u7a3f\u304c\u7121\u3044\u5834\u5408\u306e\u8a18\u8ff0\r\n<?php endif; wp_reset_postdata(); ?>\r\n<\/pre>\n<p>\u5b9f\u969b\u306b\u306f\u3001\u4e0a\u8a18\u306e\u57fa\u672c\u69cb\u9020\u306b\u4efb\u610f\u306e\u6761\u4ef6\u30fb\u60c5\u5831\u3092\u5165\u529b\u3057\u307e\u3059\u3002 \u4e00\u4f8b\u3068\u3057\u3066\u3001\u6295\u7a3f\u3055\u308c\u305f\u8a18\u4e8b\u30925\u3064\u964d\u9806\u306b\u53d6\u308a\u51fa\u3057\u3001\u6295\u7a3f\u65e5\u6642\u3001\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u3092\u8868\u793a\u3055\u305b\u308b\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n  <?php\r\n    $args = array(\r\n      'post_type' => 'post',  \/\/\u300c\u6295\u7a3f\u300d\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u6307\u5b9a\r\n      'posts_per_page' => '5',  \/\/\u30da\u30fc\u30b8\u5185\u3067\u8868\u793a\u3055\u305b\u308b\u300c\u6295\u7a3f\u300d\u306e\u6570\u3092\u6307\u5b9a\r\n      'order' => 'DESC' \/\/\u8868\u793a\u3055\u305b\u308b\u9806\u5e8f\u3092\u964d\u9806\u306b\u6307\u5b9a\r\n    );\r\n    $the_query = new WP_Query($args);\r\n    if ($the_query->have_posts()) :   ?>\r\n    <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>\r\n      <article class=\"article\">\r\n        <a href=\"<?php the_permalink(); ?>\">\r\n          <time class=\"time\"><?php the_time( 'Y\/n\/j' ); ?><\/time>\r\n          <h3><?php the_title(); ?><\/h3>\r\n        <\/a>\r\n      <\/article>\r\n    <?php endwhile; ?>\r\n  <?php else : ?>\r\n     <p>\u307e\u3060\u6295\u7a3f\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\r\n  <?php endif; wp_reset_postdata(); ?>\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%E3%82%AF%E3%82%A8%E3%83%AA%E3%83%AB%E3%83%BC%E3%83%97%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%81%A8%E3%81%AF\"><\/span>\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u3068\u306f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3053\u3053\u307e\u3067\u3001PHP\u3092\u66f8\u3044\u3066\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u884c\u3044\u3001\u60c5\u5831\u3092\u7e70\u308a\u8fd4\u3057\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u5b9f\u306fWordPress\u306e\u7ba1\u7406\u753b\u9762\u304b\u3089\u540c\u69d8\u306e\u64cd\u4f5c\u3092\u884c\u3046\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u304b\u3089\u306f\u5b9f\u969b\u306b\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u3092\u633f\u5165\u3059\u308b\u624b\u9806\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%80%901%E3%80%91%E3%82%AF%E3%82%A8%E3%83%AA%E3%83%AB%E3%83%BC%E3%83%97%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B\"><\/span>\u30101\u3011\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u6295\u7a3f\u306e\u7de8\u96c6\u753b\u9762\u3084\u65b0\u898f\u6295\u7a3f\u4f5c\u6210\u753b\u9762\u306b\u5165\u308a\u3001\u300c+\u300d\u30d6\u30ed\u30c3\u30af\u633f\u5165\u30c4\u30fc\u30eb\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u300c\u30af\u30a8\u30ea\u300d\u3068\u691c\u7d22\u3057\u307e\u3059\u3002 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress02.png\" alt=\"\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u3092\u9078\u629e\" width=\"470\" height=\"321\" class=\"alignnone size-full wp-image-7089\" srcset=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress02.png 470w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress02-300x205.png 300w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/p>\n<p>\u300c\u9078\u629e\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u3044\u304f\u3064\u304b\u306e\u8868\u793a\u30d1\u30bf\u30fc\u30f3\u304c\u63d0\u793a\u3055\u308c\u308b\u305f\u3081\u3001\u7c21\u5358\u306b\u633f\u5165\u3067\u304d\u307e\u3059\u3002 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress03.png\" alt=\"\u8868\u793a\u30d1\u30bf\u30fc\u30f3\u3092\u9078\u629e\" width=\"1003\" height=\"534\" class=\"alignnone size-full wp-image-7090\" srcset=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress03.png 1003w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress03-300x160.png 300w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress03-768x409.png 768w\" sizes=\"auto, (max-width: 1003px) 100vw, 1003px\" \/><\/p>\n<p>\u6b21\u306b\u3001\u300c\u65b0\u898f\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u5834\u5408\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%80%902%E3%80%91%E5%A4%96%E8%A6%B3%E3%82%92%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA%E3%81%99%E3%82%8B\"><\/span>\u30102\u3011\u5916\u89b3\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3057\u300c\u65b0\u898f\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e4\u3064\u304b\u3089\u8868\u793a\u65b9\u6cd5\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30bf\u30a4\u30c8\u30eb\u3068\u65e5\u4ed8<\/li>\n<li>\u30bf\u30a4\u30c8\u30eb\u3068\u629c\u7c8b<\/li>\n<li>\u30bf\u30a4\u30c8\u30eb\u3001\u65e5\u4ed8\u3001\u629c\u7c8b<\/li>\n<li>\u753b\u50cf\u3001\u65e5\u4ed8\u3001\u30bf\u30a4\u30c8\u30eb \u8868\u793a\u65b9\u6cd5\u9078\u629e<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306e\u4e2d\u304b\u3089\u4efb\u610f\u306e\u8868\u793a\u65b9\u6cd5\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u9078\u629e\u3057\u305f\u306e\u3061\u3001\u30c4\u30fc\u30eb\u30d0\u30fc\u3068\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u3066\u5916\u89b3\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%83%84%E3%83%BC%E3%83%AB%E3%83%90%E3%83%BC\"><\/span>\u30d6\u30ed\u30c3\u30af\u30c4\u30fc\u30eb\u30d0\u30fc<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress04.png\" alt=\"\u30d6\u30ed\u30c3\u30af\u30c4\u30fc\u30eb\u30d0\u30fc\" width=\"803\" height=\"485\" class=\"alignnone size-full wp-image-7091\" srcset=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress04.png 803w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress04-300x181.png 300w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress04-768x464.png 768w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/p>\n<p>\u30d6\u30ed\u30c3\u30af\u30c4\u30fc\u30eb\u30d0\u30fc\u3067\u306f\u3001\u30d6\u30ed\u30c3\u30af\u306e\u30b9\u30bf\u30a4\u30eb\u3084\u914d\u7f6e\u3001\u8868\u793a\u3055\u305b\u308b\u6570\u3084\u8868\u793a\u65b9\u6cd5\u306b\u81f3\u308b\u307e\u3067\u3001\u8a73\u7d30\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30bf\u30a4\u30c8\u30eb\u3084\u753b\u50cf\u3001\u30c6\u30ad\u30b9\u30c8\u30ea\u30f3\u30af\u306a\u3069\u3001\u305d\u308c\u305e\u308c\u306b\u30d6\u30ed\u30c3\u30af\u30c4\u30fc\u30eb\u30d0\u30fc\u304c\u3042\u308a\u3001\u500b\u5225\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%B5%E3%82%A4%E3%83%89%E3%83%90%E3%83%BC\"><\/span>\u30b5\u30a4\u30c9\u30d0\u30fc<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress05.png\" alt=\"\u30b5\u30a4\u30c9\u30d0\u30fc\" width=\"804\" height=\"446\" class=\"alignnone size-full wp-image-7092\" srcset=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress05.png 804w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress05-300x166.png 300w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress05-768x426.png 768w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><\/p>\n<p>\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u3092\u9078\u629e\u3057\u305f\u72b6\u614b\u3067\u3001\u753b\u9762\u53f3\u5074\u306b\u8868\u793a\u3055\u308c\u308b\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u3084\u80cc\u666f\u3001\u30ea\u30f3\u30af\u306e\u8272\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30b5\u30a4\u30c9\u30d0\u30fc\u4e0b\u90e8\u306b\u3042\u308b\u3001\u300c\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304b\u3089\u30af\u30a8\u30ea\u30fc\u3092\u7d99\u627f\u300d\u304c\u30aa\u30f3\u306e\u72b6\u614b\u3060\u3068\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u6295\u7a3f\u30bf\u30a4\u30d7\u3084\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u4e26\u3073\u9806\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u5834\u5408\u306f\u30aa\u30d5\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u307e\u305f\u3001\u300c\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304b\u3089\u30af\u30a8\u30ea\u30fc\u3092\u7d99\u627f\u300d\u3092\u30aa\u30d5\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u30d5\u30a3\u30eb\u30bf\u30fc\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 \u30d5\u30a3\u30eb\u30bf\u30fc\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7528\u3044\u308b\u3068\u3001\u8868\u793a\u3055\u308c\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u3001\u30bf\u30b0\u3001\u6295\u7a3f\u8005\u3001\u30ad\u30fc\u30ef\u30fc\u30c9\u306b\u57fa\u3065\u3044\u3066\u7d5e\u308a\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u307e\u3067\u7d39\u4ecb\u3057\u305f\u3082\u306e\u4ee5\u5916\u306b\u3082\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u308b\u9805\u76ee\u304c\u3042\u308b\u306e\u3067\u3001\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%BE%E3%81%A8%E3%82%81\"><\/span>\u307e\u3068\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30eb\u30fc\u30d7\u306e\u57fa\u672c\u304b\u3089WordPress\u7279\u6709\u306e\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u3001\u30b5\u30d6\u30eb\u30fc\u30d7\u3001\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002 \u3053\u308c\u3089\u306e\u77e5\u8b58\u3092\u6d3b\u7528\u3057\u3066\u3001\u3088\u308a\u52b9\u7387\u7684\u3067\u67d4\u8edf\u306aWordPress\u30b5\u30a4\u30c8\u306e\u69cb\u7bc9\u306b\u6311\u6226\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u3082\u305d\u3082\u30eb\u30fc\u30d7\u3068\u306f\u4f55\u304b\u3001WordPress\u3067\u306e\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u3001\u30b5\u30d6\u30eb\u30fc\u30d7\u306e\u57fa\u672c\u69cb\u9020\u3084\u5f79\u5272\u3001\u53ca\u3073\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u3067\u306e\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u306e\u69cb\u9020\u3001\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":7093,"parent":0,"menu_order":0,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"class_list":["post-7087","customize","type-customize","status-publish","format-standard","has-post-thumbnail","hentry"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.5 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u682a\u5f0f\u4f1a\u793e\u30c7\u30b8\u30bf\u30eb\u30a2\u30a4\u30c7\u30f3\u30c6\u30a3\u30c6\u30a3 wp.geek\u7de8\u96c6\u90e8\"\/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.5\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"wp.geek | wp.geek\u3067\u306fWordPress\u306b\u95a2\u3059\u308b\u69d8\u3005\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u307e\u3059\u3002\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3067\u306e\u30b5\u30a4\u30c8\u5236\u4f5c\u306b\u643a\u308f\u308b\u5168\u3066\u306e\u65b9\u306b\u5f79\u7acb\u3064\u60c5\u5831\u3092\u3054\u63d0\u4f9b\u3057\u3066\u3044\u304d\u307e\u3059\u3002\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"WordPress\u306e\u30eb\u30fc\u30d7\u3068\u306f\uff1f\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u30fb\u30b5\u30d6\u30eb\u30fc\u30d7\u30fb\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u306e\u69cb\u9020\u30fb\u4f7f\u3044\u65b9\u3092\u89e3\u8aac | wp.geek\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t\t<meta property=\"og:image:height\" content=\"683\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-08-29T06:05:40+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-09-04T03:56:48+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"WordPress\u306e\u30eb\u30fc\u30d7\u3068\u306f\uff1f\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u30fb\u30b5\u30d6\u30eb\u30fc\u30d7\u30fb\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u306e\u69cb\u9020\u30fb\u4f7f\u3044\u65b9\u3092\u89e3\u8aac | wp.geek\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress.jpg\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"WordPress\u306e\u30eb\u30fc\u30d7\u3068\u306f\uff1f\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u30fb\u30b5\u30d6\u30eb\u30fc\u30d7\u30fb\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u306e\u69cb\u9020\u30fb\u4f7f\u3044\u65b9\u3092\u89e3\u8aac | wp.geek","description":"","canonical_url":false,"robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"ja_JP","og:site_name":"wp.geek | wp.geek\u3067\u306fWordPress\u306b\u95a2\u3059\u308b\u69d8\u3005\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u307e\u3059\u3002\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3067\u306e\u30b5\u30a4\u30c8\u5236\u4f5c\u306b\u643a\u308f\u308b\u5168\u3066\u306e\u65b9\u306b\u5f79\u7acb\u3064\u60c5\u5831\u3092\u3054\u63d0\u4f9b\u3057\u3066\u3044\u304d\u307e\u3059\u3002","og:type":"article","og:title":"WordPress\u306e\u30eb\u30fc\u30d7\u3068\u306f\uff1f\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u30fb\u30b5\u30d6\u30eb\u30fc\u30d7\u30fb\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u306e\u69cb\u9020\u30fb\u4f7f\u3044\u65b9\u3092\u89e3\u8aac | wp.geek","og:image":"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress.jpg","og:image:secure_url":"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress.jpg","og:image:width":1024,"og:image:height":683,"article:published_time":"2024-08-29T06:05:40+00:00","article:modified_time":"2024-09-04T03:56:48+00:00","twitter:card":"summary_large_image","twitter:title":"WordPress\u306e\u30eb\u30fc\u30d7\u3068\u306f\uff1f\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u30fb\u30b5\u30d6\u30eb\u30fc\u30d7\u30fb\u30af\u30a8\u30ea\u30eb\u30fc\u30d7\u30d6\u30ed\u30c3\u30af\u306e\u69cb\u9020\u30fb\u4f7f\u3044\u65b9\u3092\u89e3\u8aac | wp.geek","twitter:image":"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/08\/about_the_loop_in_wordpress.jpg"},"aioseo_meta_data":{"post_id":"7087","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"WebPage","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2024-08-29 05:48:19","updated":"2026-11-12 00:42:51","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"_links":{"self":[{"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/customize\/7087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/customize"}],"about":[{"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/types\/customize"}],"author":[{"embeddable":true,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":2,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/customize\/7087\/revisions"}],"predecessor-version":[{"id":7112,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/customize\/7087\/revisions\/7112"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/media\/7093"}],"wp:attachment":[{"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/media?parent=7087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/categories?post=7087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}