{"id":4086,"date":"2026-11-04T09:00:00","date_gmt":"2026-11-04T00:00:00","guid":{"rendered":"https:\/\/wptoolslab.com\/query-lab\/?post_type=wpq_article&#038;p=4086"},"modified":"2026-09-14T13:51:32","modified_gmt":"2026-09-14T04:51:32","slug":"wp-query-generated-code-checklist","status":"publish","type":"wpq_article","link":"https:\/\/wptoolslab.com\/query-lab\/articles\/wp-query-generated-code-checklist\/","title":{"rendered":"WP Query Builder\u306e\u751f\u6210\u30b3\u30fc\u30c9\u3092WordPress\u3078\u5b89\u5168\u306b\u8cbc\u308b\u65b9\u6cd5\uff5c\u672c\u756a\u524d\u306e7\u9805\u76ee"},"content":{"rendered":"<section class=\"conclusion wpq-conclusion\"><h2 class=\"wpq-conclusion__title\">\u751f\u6210\u30b3\u30fc\u30c9\u306f\u3001\u623b\u305b\u308b\u72b6\u614b\u3092\u4f5c\u3063\u3066\u304b\u3089\u53cd\u6620\u3057\u307e\u3059<\/h2><p>WP Query Builder\u3067\u751f\u6210\u3057\u305f\u30b3\u30fc\u30c9\u306f\u3001\u53d6\u5f97\u6761\u4ef6\u3092\u307e\u3068\u3081\u305f`$args`\u3067\u3059\u3002WordPress\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u672c\u6587\u3078\u8cbc\u308b\u3060\u3051\u3067\u306f\u52d5\u304b\u305a\u3001\u8868\u793a\u3059\u308b\u5834\u6240\u3001`new WP_Query()`\u3068\u30eb\u30fc\u30d7\u3001\u5b9f\u969b\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u3084\u30b9\u30e9\u30c3\u30b0\u3092\u5225\u306b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u672c\u756a\u30b5\u30a4\u30c8\u3078\u76f4\u63a5\u8cbc\u3089\u305a\u3001\u5b50\u30c6\u30fc\u30de\u307e\u305f\u306f\u30b5\u30a4\u30c8\u56fa\u6709\u30d7\u30e9\u30b0\u30a4\u30f3\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001PHP\u69cb\u6587\u691c\u67fb\u3001\u30ed\u30fc\u30ab\u30eb\u30fb\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u78ba\u8a8d\u3001\u623b\u3057\u65b9\u307e\u3067\u7528\u610f\u3057\u3066\u304b\u3089\u53cd\u6620\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/section>\n<h2 id=\"what-generated-code-is\" class=\"h-underline section-heading\"><span class=\"section-heading-icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"code\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"m18 16 4-4-4-4\" \/>\n  <path d=\"m6 8-4 4 4 4\" \/>\n  <path d=\"m14.5 4-5 16\" \/>\n<\/svg><\/span><span class=\"section-heading-text\">\u6700\u521d\u306b\u3001\u751f\u6210\u30b3\u30fc\u30c9\u3060\u3051\u3067\u5b8c\u6210\u3067\u306f\u306a\u3044\u3068\u78ba\u8a8d\u3059\u308b<\/span><\/h2>\n<p>\u516c\u958b\u4e2d\u306eWP Query Builder\u3067\u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u300c\u901a\u5e38\u6295\u7a3f\u300d\u3001\u516c\u958b\u72b6\u614b\u3092\u300c\u516c\u958b\u6e08\u307f\u300d\u3001\u53d6\u5f97\u4ef6\u6570\u30923\u306b\u3057\u3001\u81ea\u52d5\u9ad8\u901f\u5316\u3092\u30aa\u30d5\u3001\u5148\u982d\u56fa\u5b9a\u306e\u512a\u5148\u8868\u793a\u3092\u7121\u52b9\uff08`ignore_sticky_posts=true`\uff09\u306b\u3059\u308b\u3068\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u4e26\u3073\u9806\u306f\u65e2\u5b9a\u306e\u516c\u958b\u65e5\u964d\u9806\u3067\u3059\u3002<\/p>\n<div class=\"code-panel wpq-code-block\"><div class=\"wpq-code-context wpq-code-context--excerpt\"><span class=\"wpq-code-context__icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"folder-open\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\" \/>\n<\/svg><\/span><p>\u5f15\u6570\u3084\u51e6\u7406\u306e\u4e00\u90e8\u5206\u3060\u3051\u3092\u793a\u3057\u305f\u4f8b\u3067\u3059\u3002\u3053\u306e\u307e\u307e\u5358\u72ec\u3067\u8cbc\u3089\u305a\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5185\u306eWP_Query\u3068\u30eb\u30fc\u30d7\u3078\u7d44\u307f\u8fbc\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p><\/div><div class=\"code-head wpq-code-head\"><div class=\"code-meta wpq-code-meta\"><span class=\"code-lang wpq-code-pill wpq-code-pill--lang\">PHP<\/span><span class=\"code-filename wpq-code-pill\">$args<\/span><span class=\"code-purpose wpq-code-pill\">\u901a\u5e38\u6295\u7a3f\u3092\u516c\u958b\u65e5\u306e\u65b0\u3057\u3044\u9806\u30673\u4ef6\u53d6\u5f97\u3059\u308b\u6761\u4ef6<\/span><\/div><button type=\"button\" class=\"copy-button wpq-copy-button\">\u30b3\u30d4\u30fc<\/button><\/div><pre data-wpq-code-region data-wpq-code-label=\"\u30b3\u30fc\u30c9\u4f8b: \u901a\u5e38\u6295\u7a3f\u3092\u516c\u958b\u65e5\u306e\u65b0\u3057\u3044\u9806\u30673\u4ef6\u53d6\u5f97\u3059\u308b\u6761\u4ef6 \/ $args \/ PHP\"><code><span class=\"wpq-code-line\">&lt;br \/&gt;<\/span><span class=\"wpq-code-line\"><span class=\"c-var\">$args<\/span> = <span class=\"c-keyword\">array<\/span>(&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">    <span class=\"c-key\">&#039;post_type&#039;<\/span> =&gt; <span class=\"c-str\">&#039;post&#039;<\/span>,&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">    <span class=\"c-key\">&#039;post_status&#039;<\/span> =&gt; <span class=\"c-str\">&#039;publish&#039;<\/span>,&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">    <span class=\"c-key\">&#039;posts_per_page&#039;<\/span> =&gt; <span class=\"c-num\">3<\/span>,&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">    <span class=\"c-key\">&#039;ignore_sticky_posts&#039;<\/span> =&gt; <span class=\"c-keyword\">true<\/span>&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">);&lt;br \/&gt;<\/span><\/code><\/pre><textarea class=\"wpq-code-raw\" hidden aria-hidden=\"true\" tabindex=\"-1\">&lt;br \/&gt;\n$args = array(&lt;br \/&gt;\n    &#039;post_type&#039; =&gt; &#039;post&#039;,&lt;br \/&gt;\n    &#039;post_status&#039; =&gt; &#039;publish&#039;,&lt;br \/&gt;\n    &#039;posts_per_page&#039; =&gt; 3,&lt;br \/&gt;\n    &#039;ignore_sticky_posts&#039; =&gt; true&lt;br \/&gt;\n);&lt;br \/&gt;<\/textarea><\/div>\n<p>\u3053\u306e\u914d\u5217\u306f\u300c\u4f55\u3092\u53d6\u5f97\u3059\u308b\u304b\u300d\u3092WP_Query\u3078\u6e21\u3059\u6761\u4ef6\u3067\u3059\u3002<span class=\"wpq-marker wpq-marker--yellow\">\u751f\u6210\u3055\u308c\u305f\u914d\u5217\u3060\u3051\u3067\u306f\u3001\u4e00\u89a7\u306e\u8868\u793a\u306f\u5b8c\u6210\u3057\u307e\u305b\u3093\u3002<\/span> \u3069\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u5b9f\u884c\u3059\u308b\u304b\u3001\u3069\u3093\u306aHTML\u3067\u8868\u793a\u3059\u308b\u304b\u30010\u4ef6\u306e\u3068\u304d\u306b\u4f55\u3092\u898b\u305b\u308b\u304b\u306f\u5225\u306b\u6c7a\u3081\u307e\u3059\u30023\u4ef6\u306f\u53d6\u5f97\u4e0a\u9650\u306a\u306e\u3067\u3001\u8a72\u5f53\u3059\u308b\u516c\u958b\u6295\u7a3f\u304c\u5c11\u306a\u3051\u308c\u30703\u4ef6\u672a\u6e80\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"wpq-table-block\"><p class=\"wpq-table-hint\" aria-hidden=\"true\">\u8868\u306f\u6a2a\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059<\/p><div class=\"cause-table table-scroll wpq-table-wrap\" role=\"region\" tabindex=\"0\" aria-label=\"\u8868: WP Query Builder\u3067\u78ba\u8a8d\u3067\u304d\u308b\u3053\u3068 \/ WordPress\u5074\u3067\u6c7a\u3081\u308b\u3053\u3068\"><table class=\"article-table table-priority wpq-article-table\"><thead><tr><th>WP Query Builder\u3067\u78ba\u8a8d\u3067\u304d\u308b\u3053\u3068<\/th><th>WordPress\u5074\u3067\u6c7a\u3081\u308b\u3053\u3068<\/th><\/tr><\/thead><tbody><tr><td>\u6295\u7a3f\u30bf\u30a4\u30d7\u30fb\u516c\u958b\u72b6\u614b\u30fb\u4ef6\u6570<\/td><td>\u30b3\u30fc\u30c9\u3092\u7f6e\u304f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3084\u30d5\u30c3\u30af<\/td><\/tr><tr><td>\u30ab\u30c6\u30b4\u30ea\u30fc\u30fb\u30bf\u30b0\u30fb\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u7b49\u306e\u6761\u4ef6<\/td><td>new WP_Query()\u3001\u30eb\u30fc\u30d7\u3001\u8868\u793aHTML<\/td><\/tr><tr><td>\u4e26\u3073\u9806\u30fb\u30da\u30fc\u30b8\u756a\u53f7\u30fb\u6027\u80fd\u8a2d\u5b9a<\/td><td>0\u4ef6\u8868\u793a\u3001\u30a8\u30b9\u30b1\u30fc\u30d7\u3001wp_reset_postdata()<\/td><\/tr><tr><td>\u30b3\u30fc\u30c9\u3068\u65e5\u672c\u8a9e\u306e\u8aac\u660e<\/td><td>\u5b9f\u30c7\u30fc\u30bf\u3067\u306e\u4ef6\u6570\u30fb\u9806\u756a\u30fb\u30da\u30fc\u30b8\u9001\u308a<\/td><\/tr><\/tbody><\/table><\/div><\/div>\n<p>\u3053\u3053\u3092\u5206\u3051\u3066\u304a\u304f\u3068\u3001\u300c\u751f\u6210\u3067\u304d\u305f\u306e\u306b\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u300d\u3068\u304d\u3082\u3001\u53d6\u5f97\u6761\u4ef6\u3068\u8a2d\u7f6e\u65b9\u6cd5\u3092\u5225\u3005\u306b\u8abf\u3079\u3089\u308c\u307e\u3059\u3002\u5148\u982d\u56fa\u5b9a\u306e\u512a\u5148\u8868\u793a\u3092\u7121\u52b9\u306b\u3057\u306a\u3044\u3068\u3001\u6761\u4ef6\u306b\u3088\u3063\u3066\u306f\u56fa\u5b9a\u8a18\u4e8b\u304c\u52a0\u308f\u308a\u3001\u6307\u5b9a\u4ef6\u6570\u3084\u65e5\u4ed8\u9806\u3068\u9055\u3046\u7d50\u679c\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002`ignore_sticky_posts=true`\u306f\u56fa\u5b9a\u8a18\u4e8b\u3092\u9664\u5916\u3059\u308b\u6307\u5b9a\u3067\u306f\u306a\u304f\u3001\u901a\u5e38\u306e\u6295\u7a3f\u3068\u3057\u3066\u65e5\u4ed8\u9806\u306b\u6271\u3046\u6307\u5b9a\u3067\u3059\u3002<\/p>\n\n<p>\u751f\u6210\u30b3\u30fc\u30c9\u306f\u3001\u672c\u756a\u3068\u5206\u3051\u305fWordPress\u74b0\u5883\u3067\u8868\u793a\u51e6\u7406\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u8a66\u3057\u307e\u3059\u3002\u691c\u8a3c\u7528\u3084\u516c\u958b\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u3092\u3053\u308c\u304b\u3089\u7528\u610f\u3059\u308b\u5834\u5408\u306f\u3001Xserver\u306ePHP\u5bfe\u5fdc\u3084\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u6761\u4ef6\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<h2 id=\"seven-checks\" class=\"h-underline section-heading\"><span class=\"section-heading-icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"binder-check\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <rect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\" \/>\n  <path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\" \/>\n  <path d=\"m9 14 2 2 4-4\" \/>\n<\/svg><\/span><span class=\"section-heading-text\">\u672c\u756a\u3078\u8cbc\u308b\u524d\u306b\u78ba\u8a8d\u3059\u308b7\u9805\u76ee<\/span><\/h2>\n<p>\u4e0a\u304b\u3089\u9806\u306b\u9032\u3081\u308b\u3068\u3001\u78ba\u8a8d\u6f0f\u308c\u3092\u6e1b\u3089\u305b\u307e\u3059\u3002<\/p>\n<section class=\"debug-steps wpq-steps-card\"><h2>\u5b89\u5168\u306b\u53cd\u6620\u3059\u308b\u9806\u756a<\/h2><ol class=\"step-list wpq-steps\"><li><span class=\"step-number wpq-step-no\">1<\/span><div class=\"step-body wpq-step-body\">\u30b3\u30d4\u30fc\u3057\u305f\u7bc4\u56f2\u3092\u78ba\u8a8d\u3059\u308b\uff1a$args\u3060\u3051\u304b\u3001\u30eb\u30fc\u30d7\u307e\u3067\u542b\u3080\u304b\u3092\u898b\u5206\u3051\u308b<\/div><\/li><li><span class=\"step-number wpq-step-no\">2<\/span><div class=\"step-body wpq-step-body\">\u7f6e\u304f\u5834\u6240\u3092\u6c7a\u3081\u308b\uff1a\u8ffd\u52a0\u4e00\u89a7\u3001\u30e1\u30a4\u30f3\u4e00\u89a7\u306e\u5909\u66f4\u3001\u30b3\u30fc\u30c9\u4e0d\u8981\u306e\u3069\u308c\u304b\u3092\u5206\u3051\u308b<\/div><\/li><li><span class=\"step-number wpq-step-no\">3<\/span><div class=\"step-body wpq-step-body\">\u89aa\u30c6\u30fc\u30de\u3092\u76f4\u63a5\u7de8\u96c6\u3057\u306a\u3044\uff1a\u5b50\u30c6\u30fc\u30de\u307e\u305f\u306f\u30b5\u30a4\u30c8\u56fa\u6709\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u9078\u3076<\/div><\/li><li><span class=\"step-number wpq-step-no\">4<\/span><div class=\"step-body wpq-step-body\">\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u623b\u3057\u65b9\u3092\u5148\u306b\u6c7a\u3081\u308b\uff1a\u30d5\u30a1\u30a4\u30eb\u3068DB\u3092\u3069\u3046\u5fa9\u5143\u3059\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/div><\/li><li><span class=\"step-number wpq-step-no\">5<\/span><div class=\"step-body wpq-step-body\">\u81ea\u5206\u306e\u5024\u3068\u8868\u793a\u51e6\u7406\u3092\u78ba\u8a8d\u3059\u308b\uff1a\u30b9\u30e9\u30c3\u30b0\u3001ID\u3001\u4ef6\u6570\u30010\u4ef6\u8868\u793a\u3001\u30ea\u30bb\u30c3\u30c8\u3092\u898b\u76f4\u3059<\/div><\/li><li><span class=\"step-number wpq-step-no\">6<\/span><div class=\"step-body wpq-step-body\">PHP\u306e\u69cb\u6587\u3092\u691c\u67fb\u3059\u308b\uff1a\u672c\u756a\u306b\u8fd1\u3044PHP\u30d0\u30fc\u30b8\u30e7\u30f3\u3067php -l\u3092\u901a\u3059<\/div><\/li><li><span class=\"step-number wpq-step-no\">7<\/span><div class=\"step-body wpq-step-body\">\u30ed\u30fc\u30ab\u30eb\u3068\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3067\u8a66\u3059\uff1a\u307e\u305a3\u4ef6\u3001\u6b21\u306b0\u4ef6\u3068\u4ef6\u6570\u3092\u5897\u3084\u3057\u305f\u5834\u5408\u3092\u78ba\u8a8d\u3059\u308b<\/div><\/li><\/ol><\/section>\n<h3 id=\"check-scope\" class=\"wpq-subheading\">1. \u30b3\u30d4\u30fc\u3057\u305f\u7bc4\u56f2\u304c$args\u3060\u3051\u304b\u78ba\u8a8d\u3059\u308b<\/h3>\n<p>\u307e\u305a\u3001\u30b3\u30d4\u30fc\u3057\u305f\u30b3\u30fc\u30c9\u306e\u5148\u982d\u3068\u672b\u5c3e\u3092\u898b\u307e\u3059\u3002`$args = array(`\u304b\u3089\u59cb\u307e\u308a`);`\u3067\u7d42\u308f\u308b\u306a\u3089\u3001\u53d6\u5f97\u6761\u4ef6\u3060\u3051\u3067\u3059\u3002`$args = [`\u304b\u3089\u59cb\u307e\u308a`];`\u3067\u7d42\u308f\u308b\u66f8\u304d\u65b9\u3082\u914d\u5217\u3092\u8868\u3057\u307e\u3059\u3002`new WP_Query()`\u3001`have_posts()`\u3001`the_post()`\u304c\u306a\u3051\u308c\u3070\u3001\u6295\u7a3f\u3092\u53d6\u5f97\u30fb\u8868\u793a\u3059\u308b\u51e6\u7406\u3092\u5225\u306b\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u9006\u306b\u3001\u3059\u3067\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5074\u306b\u30eb\u30fc\u30d7\u304c\u3042\u308a\u3001`$args`\u3060\u3051\u3092\u5dee\u3057\u66ff\u3048\u308b\u8a2d\u8a08\u306a\u3089\u3001\u540c\u3058\u30eb\u30fc\u30d7\u3092\u4e8c\u91cd\u306b\u8ffd\u52a0\u3057\u307e\u305b\u3093\u3002\u3069\u3053\u307e\u3067\u7528\u610f\u6e08\u307f\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u7de8\u96c6\u7bc4\u56f2\u3092\u6c7a\u3081\u307e\u3059\u3002<\/p>\n<h3 id=\"check-placement\" class=\"wpq-subheading\">2. \u30b3\u30fc\u30c9\u3092\u7f6e\u304f\u5834\u6240\u3092\u3001\u3084\u308a\u305f\u3044\u3053\u3068\u304b\u3089\u6c7a\u3081\u308b<\/h3>\n<p>PHP\u30b3\u30fc\u30c9\u306f\u3001WordPress\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u672c\u6587\u3084CSS\u6b04\u3078\u8cbc\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u8ffd\u52a0\u306e\u6295\u7a3f\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u306a\u3089\u3001\u30af\u30e9\u30b7\u30c3\u30af\u30c6\u30fc\u30de\u3067\u306f\u5b50\u30c6\u30fc\u30de\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3084\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u304c\u5019\u88dc\u3067\u3059\u3002\u30d6\u30ed\u30c3\u30af\u3067\u5b9f\u73fe\u3067\u304d\u308b\u306a\u3089\u3001\u5148\u306bQuery Loop\u3092\u691c\u8a0e\u3057\u307e\u3059\u3002<\/p>\n<div class=\"wpq-table-block\"><p class=\"wpq-table-hint\" aria-hidden=\"true\">\u8868\u306f\u6a2a\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059<\/p><div class=\"cause-table table-scroll wpq-table-wrap\" role=\"region\" tabindex=\"0\" aria-label=\"\u8868: \u3084\u308a\u305f\u3044\u3053\u3068 \/ \u5148\u306b\u691c\u8a0e\u3059\u308b\u5834\u6240 \/ \u6ce8\u610f\u70b9\"><table class=\"article-table table-priority wpq-article-table\"><thead><tr><th>\u3084\u308a\u305f\u3044\u3053\u3068<\/th><th>\u5148\u306b\u691c\u8a0e\u3059\u308b\u5834\u6240<\/th><th>\u6ce8\u610f\u70b9<\/th><\/tr><\/thead><tbody><tr><td>\u56fa\u5b9a\u30da\u30fc\u30b8\u3078\u30b3\u30fc\u30c9\u306a\u3057\u3067\u4e00\u89a7\u3092\u7f6e\u304f<\/td><td>Query Loop\u30d6\u30ed\u30c3\u30af<\/td><td>PHP\u3092\u8cbc\u3089\u305a\u306b\u6e08\u3080<\/td><\/tr><tr><td>\u30da\u30fc\u30b8\u306e\u9014\u4e2d\u3078\u8ffd\u52a0\u4e00\u89a7\u3092\u7f6e\u304f<\/td><td>\u5b50\u30c6\u30fc\u30de\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8 \/ \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4<\/td><td>\u8868\u793a\u3057\u305f\u3044\u4f4d\u7f6e\u3067\u30eb\u30fc\u30d7\u3092\u5b9f\u884c\u3059\u308b<\/td><\/tr><tr><td>\u30c6\u30fc\u30de\u3092\u66ff\u3048\u3066\u3082\u6b8b\u3059\u6a5f\u80fd\u306b\u3059\u308b<\/td><td>\u30b5\u30a4\u30c8\u56fa\u6709\u30d7\u30e9\u30b0\u30a4\u30f3<\/td><td>\u898b\u305f\u76ee\u3067\u306f\u306a\u304f\u30b5\u30a4\u30c8\u6a5f\u80fd\u3068\u3057\u3066\u7ba1\u7406\u3059\u308b<\/td><\/tr><tr><td>\u30ab\u30c6\u30b4\u30ea\u30fc\u4e00\u89a7\u306a\u3069\u65e2\u5b58\u306e\u30e1\u30a4\u30f3\u4e00\u89a7\u3092\u5909\u3048\u308b<\/td><td>pre_get_posts\u7b49\u3092\u691c\u8a0e<\/td><td>\u5225\u306eWP_Query\u3092\u91cd\u306d\u306a\u3044<\/td><\/tr><\/tbody><\/table><\/div><\/div>\n<p>\u8a2d\u7f6e\u5834\u6240\u3092\u307e\u3060\u6c7a\u3081\u3089\u308c\u306a\u3044\u5834\u5408\u306f\u3001\u30b3\u30fc\u30c9\u3092\u8cbc\u308b\u524d\u306b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<span class=\"wpq-marker wpq-marker--yellow\">\u53d6\u5f97\u6761\u4ef6\u304c\u6b63\u3057\u304f\u3066\u3082\u3001\u7f6e\u304f\u5834\u6240\u304c\u9055\u3048\u3070\u3001\u610f\u56f3\u3057\u305f\u5834\u6240\u3067\u610f\u56f3\u3057\u305f\u3068\u304a\u308a\u306b\u306f\u52d5\u304d\u307e\u305b\u3093\u3002<\/span><\/p>\n<h3 id=\"check-child-theme\" class=\"wpq-subheading\">3. \u89aa\u30c6\u30fc\u30de\u3067\u306f\u306a\u304f\u3001\u5b50\u30c6\u30fc\u30de\u304b\u30b5\u30a4\u30c8\u56fa\u6709\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046<\/h3>\n<p>\u89aa\u30c6\u30fc\u30de\u306e\u30d5\u30a1\u30a4\u30eb\u3078\u76f4\u63a5\u66f8\u304f\u3068\u3001\u30c6\u30fc\u30de\u66f4\u65b0\u3067\u5909\u66f4\u304c\u6d88\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002WordPress\u516c\u5f0f\u306eChild Themes\u3067\u306f\u3001\u5b50\u30c6\u30fc\u30de\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3092\u5206\u96e2\u3059\u308b\u3053\u3068\u3067\u3001\u89aa\u30c6\u30fc\u30de\u3092\u66f4\u65b0\u3057\u3066\u3082\u5909\u66f4\u3092\u4fdd\u3061\u3084\u3059\u3044\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<aside class=\"callout callout-warning wpq-callout wpq-callout--warning\"><p class=\"callout-title wpq-callout__title\"><span class=\"wpq-callout__icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"warning\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" \/>\n  <path d=\"M12 9v4\" \/>\n  <path d=\"M12 17h.01\" \/>\n<\/svg><\/span><span>\u5b50\u30c6\u30fc\u30de\u306efunctions.php\u306f\u89aa\u30c6\u30fc\u30de\u3092\u7f6e\u304d\u63db\u3048\u307e\u305b\u3093<\/span><\/p><p>\u5b50\u30c6\u30fc\u30de\u3068\u89aa\u30c6\u30fc\u30de\u306e`functions.php`\u306f\u4e21\u65b9\u8aad\u307f\u8fbc\u307e\u308c\u307e\u3059\u3002\u89aa\u30c6\u30fc\u30de\u306e\u95a2\u6570\u3092\u4e38\u3054\u3068\u30b3\u30d4\u30fc\u3059\u308b\u3068\u3001\u540c\u540d\u95a2\u6570\u306e\u91cd\u8907\u3067\u81f4\u547d\u7684\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5fc5\u8981\u306a\u51e6\u7406\u3060\u3051\u3092\u3001\u30b5\u30a4\u30c8\u56fa\u6709\u306e\u63a5\u982d\u8f9e\u3092\u4ed8\u3051\u3066\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<\/aside>\n<p>\u8868\u793a\u304c\u30c6\u30fc\u30de\u306b\u5c5e\u3059\u308b\u306a\u3089\u5b50\u30c6\u30fc\u30de\u3001\u30c6\u30fc\u30de\u3092\u66ff\u3048\u3066\u3082\u6b8b\u3059\u53d6\u5f97\u51e6\u7406\u3084\u6a5f\u80fd\u306a\u3089\u30b5\u30a4\u30c8\u56fa\u6709\u30d7\u30e9\u30b0\u30a4\u30f3\u3001\u3068\u3044\u3046\u57fa\u6e96\u3067\u5206\u3051\u307e\u3059\u3002\u300cPHP\u306a\u3089\u3059\u3079\u3066functions.php\u300d\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3 id=\"check-backup\" class=\"wpq-subheading\">4. \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u623b\u3057\u65b9\u307e\u3067\u78ba\u8a8d\u3059\u308b<\/h3>\n<p>WordPress\u30b5\u30a4\u30c8\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5206\u304b\u308c\u3066\u3044\u307e\u3059\u3002\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3060\u3051\u3067\u306f\u3001\u6295\u7a3f\u3001\u8a2d\u5b9a\u3001\u30e1\u30cb\u30e5\u30fc\u7b49\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u5bb9\u307e\u3067\u623b\u305b\u307e\u305b\u3093\u3002\u9006\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3060\u3051\u3067\u306f\u30c6\u30fc\u30de\u3084\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u623b\u305b\u307e\u305b\u3093\u3002<\/p>\n<div class=\"wpq-table-block\"><p class=\"wpq-table-hint\" aria-hidden=\"true\">\u8868\u306f\u6a2a\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059<\/p><div class=\"cause-table table-scroll wpq-table-wrap\" role=\"region\" tabindex=\"0\" aria-label=\"\u8868: \u6b8b\u3059\u3082\u306e \/ \u542b\u3081\u308b\u5185\u5bb9 \/ \u623b\u3059\u5834\u9762\"><table class=\"article-table table-priority wpq-article-table\"><thead><tr><th>\u6b8b\u3059\u3082\u306e<\/th><th>\u542b\u3081\u308b\u5185\u5bb9<\/th><th>\u623b\u3059\u5834\u9762<\/th><\/tr><\/thead><tbody><tr><td>\u5909\u66f4\u524d\u306e\u30d5\u30a1\u30a4\u30eb<\/td><td>\u7de8\u96c6\u3059\u308b\u5b50\u30c6\u30fc\u30de \/ \u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u73fe\u5728\u306e\u5dee\u5206<\/td><td>PHP\u30a8\u30e9\u30fc\u3084\u8868\u793a\u5d29\u308c\u3092\u76f4\u3061\u306b\u623b\u3059<\/td><\/tr><tr><td>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/td><td>\u6295\u7a3f\u3001\u56fa\u5b9a\u30da\u30fc\u30b8\u3001\u8a2d\u5b9a\u3001\u30e1\u30cb\u30e5\u30fc\u7b49<\/td><td>\u540c\u671f\u30fb\u79fb\u884c\u30fb\u8a2d\u5b9a\u5909\u66f4\u3082\u542b\u3081\u3066\u623b\u3059<\/td><\/tr><tr><td>\u4f5c\u696d\u30e1\u30e2<\/td><td>\u5bfe\u8c61URL\u3001\u5909\u66f4\u30d5\u30a1\u30a4\u30eb\u3001\u53cd\u6620\u6642\u523b\u3001\u78ba\u8a8d\u9805\u76ee<\/td><td>\u3069\u306e\u5909\u66f4\u3092\u623b\u3059\u304b\u5224\u65ad\u3059\u308b<\/td><\/tr><tr><td>\u5fa9\u5143\u624b\u9806<\/td><td>\u8ab0\u304c\u3001\u3069\u306e\u753b\u9762\u30fb\u30b3\u30de\u30f3\u30c9\u3067\u3001\u3069\u3053\u307e\u3067\u623b\u3059\u304b<\/td><td>\u7ba1\u7406\u753b\u9762\u3078\u5165\u308c\u306a\u3044\u5834\u5408\u306b\u3082\u5bfe\u5fdc\u3059\u308b<\/td><\/tr><\/tbody><\/table><\/div><\/div>\n<p>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u4f5c\u6210\u6e08\u307f\u3067\u3082\u3001\u4fdd\u5b58\u5834\u6240\u3084\u5fa9\u5143\u624b\u9806\u304c\u5206\u304b\u3089\u306a\u3051\u308c\u3070\u7dca\u6025\u6642\u306b\u4f7f\u3048\u307e\u305b\u3093\u3002\u5c11\u306a\u304f\u3068\u3082\u3001\u5909\u66f4\u30d5\u30a1\u30a4\u30eb\u30921\u3064\u524d\u3078\u623b\u3059\u65b9\u6cd5\u3068\u3001\u30b5\u30a4\u30c8\u5168\u4f53\u3092\u5fa9\u5143\u3059\u308b\u62c5\u5f53\u30fb\u624b\u9806\u3092\u4f5c\u696d\u524d\u306b\u78ba\u8a8d\u3057\u307e\u3059\u3002<span class=\"wpq-marker wpq-marker--yellow\">\u30c6\u30fc\u30de\u306e\u30b3\u30fc\u30c9\u3060\u3051\u3092\u5909\u66f4\u3057\u305f\u5834\u5408\u306f\u3001\u307e\u305a\u5909\u66f4\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3092\u623b\u3057\u307e\u3059\u3002<\/span> \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5168\u4f53\u3092\u53e4\u3044\u72b6\u614b\u3078\u623b\u3059\u3068\u3001\u305d\u306e\u5f8c\u306e\u6295\u7a3f\u30fb\u6ce8\u6587\u30fb\u554f\u3044\u5408\u308f\u305b\u306a\u3069\u3082\u5931\u308f\u308c\u308b\u304a\u305d\u308c\u304c\u3042\u308b\u305f\u3081\u3001\u5225\u306e\u5224\u65ad\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h3 id=\"check-values-loop\" class=\"wpq-subheading\">5. \u81ea\u5206\u306e\u5024\u3078\u5dee\u3057\u66ff\u3048\u3001\u8868\u793a\u30eb\u30fc\u30d7\u3092\u5b8c\u6210\u3055\u305b\u308b<\/h3>\n<p>\u751f\u6210\u30b3\u30fc\u30c9\u306b\u3042\u308b`post_type`\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u3084\u30bf\u30b0\u306e\u30b9\u30e9\u30c3\u30b0\u3001\u6295\u7a3fID\u3001\u30e1\u30bf\u30ad\u30fc\u306f\u3001\u5b9f\u969b\u306eWordPress\u306b\u5b58\u5728\u3059\u308b\u5024\u3068\u4e00\u81f4\u3055\u305b\u307e\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u306e`news`\u3084`event_date`\u3092\u305d\u306e\u307e\u307e\u4f7f\u3063\u3066\u3082\u3001\u540c\u3058\u6295\u7a3f\u30bf\u30a4\u30d7\u3084\u4fdd\u5b58\u5024\u304c\u306a\u3051\u308c\u3070\u3001\u671f\u5f85\u3059\u308b\u6295\u7a3f\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u30da\u30fc\u30b8\u306e\u9014\u4e2d\u306b\u65b0\u7740\u4e00\u89a7\u3092\u8ffd\u52a0\u3059\u308b\u5834\u5408\u306f\u3001\u751f\u6210\u3057\u305f`$args`\u306b\u53d6\u5f97\u30fb\u8868\u793a\u30fb0\u4ef6\u6642\u30fb\u30ea\u30bb\u30c3\u30c8\u306e\u51e6\u7406\u3092\u624b\u52d5\u3067\u7d44\u307f\u5408\u308f\u305b\u307e\u3059\u3002\u4ee5\u4e0b\u3092\u30af\u30e9\u30b7\u30c3\u30af\u30c6\u30fc\u30de\u306e\u5b50\u30c6\u30fc\u30de\u306b\u3042\u308b`template-parts\/latest-posts.php`\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002\u65b0\u898fPHP\u30d5\u30a1\u30a4\u30eb\u5168\u4f53\u306e\u4f8b\u306a\u306e\u3067\u3001\u5148\u982d\u306e`&lt;?php`\u3092\u542b\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"code-panel wpq-code-block\"><div class=\"wpq-code-context wpq-code-context--template\"><span class=\"wpq-code-context__icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"folder-open\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\" \/>\n<\/svg><\/span><p>\u30af\u30e9\u30b7\u30c3\u30af\u30c6\u30fc\u30de\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\uff08\u307e\u305f\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\uff09\u3067\u3001\u4e00\u89a7\u3092\u8868\u793a\u3057\u305f\u3044\u4f4d\u7f6e\u306b\u7f6e\u304f\u4f8b\u3067\u3059\u3002\u6295\u7a3f\u672c\u6587\u3084functions.php\u3078\u3001\u305d\u306e\u307e\u307e\u8cbc\u308b\u30b3\u30fc\u30c9\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p><\/div><div class=\"code-head wpq-code-head\"><div class=\"code-meta wpq-code-meta\"><span class=\"code-lang wpq-code-pill wpq-code-pill--lang\">PHP<\/span><span class=\"code-filename wpq-code-pill\">template-parts\/latest-posts.php<\/span><span class=\"code-purpose wpq-code-pill\">\u751f\u6210\u3057\u305f$args\u30923\u4ef6\u306e\u8ffd\u52a0\u4e00\u89a7\u3068\u3057\u3066\u8868\u793a\u3059\u308b<\/span><\/div><button type=\"button\" class=\"copy-button wpq-copy-button\">\u30b3\u30d4\u30fc<\/button><\/div><pre data-wpq-code-region data-wpq-code-label=\"\u30b3\u30fc\u30c9\u4f8b: \u751f\u6210\u3057\u305f$args\u30923\u4ef6\u306e\u8ffd\u52a0\u4e00\u89a7\u3068\u3057\u3066\u8868\u793a\u3059\u308b \/ template-parts\/latest-posts.php \/ PHP\"><code><span class=\"wpq-code-line\">&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">&lt;?php&lt;br \/&gt;<\/span><span class=\"wpq-code-line\"><span class=\"c-var\">$args<\/span> = [&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">   <span class=\"c-key\">&#039;post_type&#039;<\/span>      =&gt; <span class=\"c-str\">&#039;post&#039;<\/span>,&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">   <span class=\"c-key\">&#039;post_status&#039;<\/span>    =&gt; <span class=\"c-str\">&#039;publish&#039;<\/span>,&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">   <span class=\"c-key\">&#039;posts_per_page&#039;<\/span> =&gt; <span class=\"c-num\">3<\/span>,&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">   <span class=\"c-key\">&#039;orderby&#039;<\/span>        =&gt; <span class=\"c-str\">&#039;date&#039;<\/span>,&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">   <span class=\"c-key\">&#039;order&#039;<\/span>          =&gt; <span class=\"c-str\">&#039;DESC&#039;<\/span>,&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">   <span class=\"c-key\">&#039;ignore_sticky_posts&#039;<\/span> =&gt; <span class=\"c-keyword\">true<\/span>,&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">];&lt;\/p&gt;<\/span><span class=\"wpq-code-line\">&lt;p&gt;<span class=\"c-var\">$latest_posts<\/span> = <span class=\"c-keyword\">new<\/span> <span class=\"c-fn\">WP_Query<\/span>( <span class=\"c-var\">$args<\/span> );&lt;\/p&gt;<\/span><span class=\"wpq-code-line\">&lt;p&gt;<span class=\"c-keyword\">if<\/span> ( <span class=\"c-var\">$latest_posts<\/span>-&gt;have_posts() ) {&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">   <span class=\"c-keyword\">echo<\/span> <span class=\"c-str\">&#039;&lt;ul class=&quot;latest-posts&quot;&gt;&#039;<\/span>;&lt;\/p&gt;<\/span><span class=\"wpq-code-line\">&lt;p&gt;   <span class=\"c-keyword\">while<\/span> ( <span class=\"c-var\">$latest_posts<\/span>-&gt;have_posts() ) {&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">      <span class=\"c-var\">$latest_posts<\/span>-&gt;the_post();&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">      printf(&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">         <span class=\"c-str\">&#039;&lt;li&gt;&lt;a href=&quot;%1$s&quot;&gt;%2$s&lt;\/a&gt;&lt;\/li&gt;&#039;<\/span>,&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">         esc_url( get_permalink() ),&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">         esc_html( get_the_title() )&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">      );&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">   }&lt;\/p&gt;<\/span><span class=\"wpq-code-line\">&lt;p&gt;   <span class=\"c-keyword\">echo<\/span> <span class=\"c-str\">&#039;&lt;\/ul&gt;&#039;<\/span>;&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">} <span class=\"c-keyword\">else<\/span> {&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">   <span class=\"c-keyword\">echo<\/span> <span class=\"c-str\">&#039;&lt;p&gt;\u8868\u793a\u3067\u304d\u308b\u8a18\u4e8b\u306f\u3042\u308a\u307e\u305b\u3093\u3002&lt;\/p&gt;&#039;<\/span>;&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">}&lt;\/p&gt;<\/span><span class=\"wpq-code-line\">&lt;p&gt;wp_reset_postdata();&lt;br \/&gt;<\/span><\/code><\/pre><textarea class=\"wpq-code-raw\" hidden aria-hidden=\"true\" tabindex=\"-1\">&lt;br \/&gt;\n&lt;?php&lt;br \/&gt;\n$args = [&lt;br \/&gt;\n   &#039;post_type&#039;      =&gt; &#039;post&#039;,&lt;br \/&gt;\n   &#039;post_status&#039;    =&gt; &#039;publish&#039;,&lt;br \/&gt;\n   &#039;posts_per_page&#039; =&gt; 3,&lt;br \/&gt;\n   &#039;orderby&#039;        =&gt; &#039;date&#039;,&lt;br \/&gt;\n   &#039;order&#039;          =&gt; &#039;DESC&#039;,&lt;br \/&gt;\n   &#039;ignore_sticky_posts&#039; =&gt; true,&lt;br \/&gt;\n];&lt;\/p&gt;\n&lt;p&gt;$latest_posts = new WP_Query( $args );&lt;\/p&gt;\n&lt;p&gt;if ( $latest_posts-&gt;have_posts() ) {&lt;br \/&gt;\n   echo &#039;&lt;ul class=&quot;latest-posts&quot;&gt;&#039;;&lt;\/p&gt;\n&lt;p&gt;   while ( $latest_posts-&gt;have_posts() ) {&lt;br \/&gt;\n      $latest_posts-&gt;the_post();&lt;br \/&gt;\n      printf(&lt;br \/&gt;\n         &#039;&lt;li&gt;&lt;a href=&quot;%1$s&quot;&gt;%2$s&lt;\/a&gt;&lt;\/li&gt;&#039;,&lt;br \/&gt;\n         esc_url( get_permalink() ),&lt;br \/&gt;\n         esc_html( get_the_title() )&lt;br \/&gt;\n      );&lt;br \/&gt;\n   }&lt;\/p&gt;\n&lt;p&gt;   echo &#039;&lt;\/ul&gt;&#039;;&lt;br \/&gt;\n} else {&lt;br \/&gt;\n   echo &#039;&lt;p&gt;\u8868\u793a\u3067\u304d\u308b\u8a18\u4e8b\u306f\u3042\u308a\u307e\u305b\u3093\u3002&lt;\/p&gt;&#039;;&lt;br \/&gt;\n}&lt;\/p&gt;\n&lt;p&gt;wp_reset_postdata();&lt;br \/&gt;<\/textarea><\/div>\n<p>\u3053\u306e\u5b8c\u6210\u4f8b\u3067\u306f\u3001\u751f\u6210\u3055\u308c\u305f\u914d\u5217\u3092`[]`\u8868\u8a18\u306b\u6574\u3048\u3001\u65e2\u5b9a\u306e\u4e26\u3073\u9806\u3092`orderby`\u3068`order`\u3067\u660e\u8a18\u3057\u3066\u3044\u307e\u3059\u3002`esc_url()`\u3068`esc_html()`\u306f\u3001\u30ea\u30f3\u30af\u5148\u3068\u30bf\u30a4\u30c8\u30eb\u3092\u305d\u308c\u305e\u308c\u306e\u51fa\u529b\u5148\u306b\u5408\u308f\u305b\u3066\u30a8\u30b9\u30b1\u30fc\u30d7\u3059\u308b\u51e6\u7406\u3067\u3059\u3002`the_post()`\u3092\u4f7f\u3063\u305f\u8ffd\u52a0\u30eb\u30fc\u30d7\u306e\u5f8c\u306f\u3001`wp_reset_postdata()`\u3067\u30e1\u30a4\u30f3\u30af\u30a8\u30ea\u306e\u6295\u7a3f\u60c5\u5831\u3078\u623b\u3057\u307e\u3059\u3002\u5225\u306e\u72ec\u81ea\u30eb\u30fc\u30d7\u306e\u5185\u5074\u3078\u5165\u308c\u308b\u4f8b\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30d1\u30fc\u30c4\u3092\u4fdd\u5b58\u3059\u308b\u3060\u3051\u3067\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u672c\u6587\u306e\u5f8c\u306b\u7f6e\u304f\u306a\u3089\u3001\u5b50\u30c6\u30fc\u30de\u5074\u3067\u5b9f\u969b\u306b\u4f7f\u308f\u308c\u308b`page.php`\u306e\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u5185\u3067\u3001`the_content()`\u306e\u5f8c\u3078\u6b21\u306e\u547c\u3073\u51fa\u3057\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u5168\u4f53\u3092\u7f6e\u304d\u63db\u3048\u305a\u3001\u65e2\u5b58\u306e\u30d8\u30c3\u30c0\u30fc\u30fb\u30d5\u30c3\u30bf\u30fc\u3084\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u3092\u6b8b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3059\u3067\u306bPHP\u304c\u958b\u3044\u3066\u3044\u308b\u4f4d\u7f6e\u3067\u306f\u3001`&lt;?php`\u3068`?&gt;`\u3092\u91cd\u306d\u305a\u547c\u3073\u51fa\u3057\u306e\u884c\u3060\u3051\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code-panel wpq-code-block\"><div class=\"wpq-code-context wpq-code-context--template\"><span class=\"wpq-code-context__icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"folder-open\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\" \/>\n<\/svg><\/span><p>\u30af\u30e9\u30b7\u30c3\u30af\u30c6\u30fc\u30de\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\uff08\u307e\u305f\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\uff09\u3067\u3001\u4e00\u89a7\u3092\u8868\u793a\u3057\u305f\u3044\u4f4d\u7f6e\u306b\u7f6e\u304f\u4f8b\u3067\u3059\u3002\u6295\u7a3f\u672c\u6587\u3084functions.php\u3078\u3001\u305d\u306e\u307e\u307e\u8cbc\u308b\u30b3\u30fc\u30c9\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p><\/div><div class=\"code-head wpq-code-head\"><div class=\"code-meta wpq-code-meta\"><span class=\"code-lang wpq-code-pill wpq-code-pill--lang\">PHP<\/span><span class=\"code-filename wpq-code-pill\">page.php\uff08\u672c\u6587\u306e\u5f8c\u3078\u8ffd\u52a0\uff09<\/span><span class=\"code-purpose wpq-code-pill\">\u4fdd\u5b58\u3057\u305f\u65b0\u7740\u4e00\u89a7\u30d1\u30fc\u30c4\u3092\u8868\u793a\u4f4d\u7f6e\u3067\u547c\u3073\u51fa\u3059<\/span><\/div><button type=\"button\" class=\"copy-button wpq-copy-button\">\u30b3\u30d4\u30fc<\/button><\/div><pre data-wpq-code-region data-wpq-code-label=\"\u30b3\u30fc\u30c9\u4f8b: \u4fdd\u5b58\u3057\u305f\u65b0\u7740\u4e00\u89a7\u30d1\u30fc\u30c4\u3092\u8868\u793a\u4f4d\u7f6e\u3067\u547c\u3073\u51fa\u3059 \/ page.php\uff08\u672c\u6587\u306e\u5f8c\u3078\u8ffd\u52a0\uff09 \/ PHP\"><code><span class=\"wpq-code-line\">&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">&lt;?php get_template_part( <span class=\"c-str\">&#039;template-parts\/latest-posts&#039;<\/span> ); ?&gt;&lt;br \/&gt;<\/span><\/code><\/pre><textarea class=\"wpq-code-raw\" hidden aria-hidden=\"true\" tabindex=\"-1\">&lt;br \/&gt;\n&lt;?php get_template_part( &#039;template-parts\/latest-posts&#039; ); ?&gt;&lt;br \/&gt;<\/textarea><\/div>\n<p>`get_template_part()`\u306b\u306f`.php`\u3092\u4ed8\u3051\u307e\u305b\u3093\u3002\u3053\u3053\u307e\u3067\u306e\u8868\u793a\u51e6\u7406\u3092`functions.php`\u3078\u305d\u306e\u307e\u307e\u8cbc\u308b\u3068\u3001\u8868\u793a\u3057\u305f\u3044\u4f4d\u7f6e\u3067\u52d5\u304f\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u57fa\u672c\u69cb\u6587\u30921\u884c\u305a\u3064\u898b\u76f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001[WP_Query\u306e\u57fa\u672c\u69cb\u6587\u3068$args\u306e\u66f8\u304d\u65b9](https:\/\/wptoolslab.com\/query-lab\/articles\/wp-query-basic-syntax\/)\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6761\u4ef6\u304c\u9055\u3063\u3066\u3044\u305f\u5834\u5408\u306f\u3001\u624b\u4f5c\u696d\u3067\u76f4\u3059\u884c\u3092\u5897\u3084\u3059\u524d\u306b\u3001WP Query Builder\u3067\u6295\u7a3f\u30bf\u30a4\u30d7\u3001\u516c\u958b\u72b6\u614b\u3001\u4ef6\u6570\u3001\u4e26\u3073\u9806\u3092\u8a2d\u5b9a\u3057\u76f4\u3057\u307e\u3059\u3002\u753b\u9762\u306e\u5165\u529b\u3068\u65e5\u672c\u8a9e\u306e\u8aac\u660e\u304c\u540c\u3058\u5185\u5bb9\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u304b\u3081\u3066\u304b\u3089\u3001\u30b3\u30fc\u30c9\u3092\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n<p>\u8868\u793a\u30d1\u30fc\u30c4\u3068\u547c\u3073\u51fa\u3057\u5143\u304c\u5206\u304b\u3063\u305f\u3089\u3001WP Query Builder\u3067\u81ea\u5206\u306e\u30b5\u30a4\u30c8\u306e\u53d6\u5f97\u6761\u4ef6\u3092\u4f5c\u308a\u76f4\u305b\u307e\u3059\u3002\u5b8c\u6210\u4f8b\u306e\u914d\u5217\u90e8\u5206\u3060\u3051\u3092\u7f6e\u304d\u63db\u3048\u3001\u30eb\u30fc\u30d7\u3068\u30ea\u30bb\u30c3\u30c8\u3092\u6b8b\u3057\u3066\u691c\u8a3c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<section class=\"builder-cta wpq-builder-panel\"><div class=\"builder-icon\" aria-hidden=\"true\"><\/div><div class=\"wpq-builder-panel__copy\"><h3>\u691c\u8a3c\u3059\u308b\u6295\u7a3f\u306e\u6761\u4ef6\u3092\u4f5c\u308b<\/h3><p>\u901a\u5e38\u6295\u7a3f\u30fb\u516c\u958b\u6e08\u307f\u30fb3\u4ef6\u304b\u3089\u59cb\u3081\u3001\u5165\u529b\u3068\u751f\u6210\u30b3\u30fc\u30c9\u3092\u898b\u6bd4\u3079\u307e\u3057\u3087\u3046\u3002\u8a2d\u7f6e\u5834\u6240\u3068\u5b9f\u969b\u306e\u8868\u793a\u7d50\u679c\u306f\u3001WordPress\u5074\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p><\/div><div class=\"builder-actions wpq-builder-panel__actions\"><a class=\"button wpq-button wpq-button--primary\" href=\"https:\/\/wptoolslab.com\/query-builder\/\">WP Query Builder\u3067\u30af\u30a8\u30ea\u3092\u4f5c\u308b<\/a><\/div><\/section>\n\n<h3 id=\"check-php-lint\" class=\"wpq-subheading\">6. PHP\u306e\u69cb\u6587\u3092\u3001\u672c\u756a\u306b\u8fd1\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u691c\u67fb\u3059\u308b<\/h3>\n<p>PHP\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306b\u306f\u3001\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u305b\u305a\u69cb\u6587\u3060\u3051\u3092\u691c\u67fb\u3059\u308b`-l`\u304c\u3042\u308a\u307e\u3059\u3002WordPress\u3092\u8a2d\u7f6e\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u30fc\u3067\u3001\u5b50\u30c6\u30fc\u30de\u306e\u30d1\u30fc\u30c4\u3068\u547c\u3073\u51fa\u3057\u5143\u306e\u4e21\u65b9\u3092\u691c\u67fb\u3057\u307e\u3059\u3002`my-child`\u306f\u5b9f\u969b\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u540d\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"code-panel wpq-code-block\"><div class=\"wpq-code-context wpq-code-context--terminal\"><span class=\"wpq-code-context__icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"folder-open\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\" \/>\n<\/svg><\/span><p>\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u3084\u6295\u7a3f\u672c\u6587\u3067\u306f\u306a\u304f\u3001WordPress\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p><\/div><div class=\"code-head wpq-code-head\"><div class=\"code-meta wpq-code-meta\"><span class=\"code-lang wpq-code-pill wpq-code-pill--lang\">Bash<\/span><span class=\"code-filename wpq-code-pill\">Terminal<\/span><span class=\"code-purpose wpq-code-pill\">PHP\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6587\u3060\u3051\u3092\u691c\u67fb\u3059\u308b<\/span><\/div><button type=\"button\" class=\"copy-button wpq-copy-button\">\u30b3\u30d4\u30fc<\/button><\/div><pre data-wpq-code-region data-wpq-code-label=\"\u30b3\u30fc\u30c9\u4f8b: PHP\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6587\u3060\u3051\u3092\u691c\u67fb\u3059\u308b \/ Terminal \/ Bash\"><code><span class=\"wpq-code-line\">&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">php -l wp-content\/themes\/my-child\/template-parts\/latest-posts.php&lt;br \/&gt;<\/span><span class=\"wpq-code-line\">php -l wp-content\/themes\/my-child\/page.php&lt;br \/&gt;<\/span><\/code><\/pre><textarea class=\"wpq-code-raw\" hidden aria-hidden=\"true\" tabindex=\"-1\">&lt;br \/&gt;\nphp -l wp-content\/themes\/my-child\/template-parts\/latest-posts.php&lt;br \/&gt;\nphp -l wp-content\/themes\/my-child\/page.php&lt;br \/&gt;<\/textarea><\/div>\n<p>`No syntax errors detected`\u3068\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u62ec\u5f27\u3084\u30bb\u30df\u30b3\u30ed\u30f3\u306a\u3069\u306e\u69cb\u6587\u306f\u901a\u3063\u3066\u3044\u307e\u3059\u3002<span class=\"wpq-marker wpq-marker--yellow\">\u305f\u3060\u3057\u3001\u6295\u7a3f\u30bf\u30a4\u30d7\u306e\u30b9\u30e9\u30c3\u30b0\u304c\u6b63\u3057\u3044\u304b\u3001WordPress\u95a2\u6570\u3092\u9069\u5207\u306a\u5834\u6240\u3067\u547c\u3093\u3067\u3044\u308b\u304b\u3001\u8868\u793a\u7d50\u679c\u304c\u610f\u56f3\u3069\u304a\u308a\u304b\u307e\u3067\u306f\u5224\u5b9a\u3057\u307e\u305b\u3093\u3002<\/span><\/p>\n<aside class=\"callout callout-info wpq-callout wpq-callout--info\"><p class=\"callout-title wpq-callout__title\"><span class=\"wpq-callout__icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"info\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <circle cx=\"12\" cy=\"12\" r=\"10\" \/>\n  <path d=\"M12 16v-4\" \/>\n  <path d=\"M12 8h.01\" \/>\n<\/svg><\/span><span>\u69cb\u6587OK\u306f\u3001\u5b89\u5168\u78ba\u8a8d\u306e\u9014\u4e2d\u3067\u3059<\/span><\/p><p>\u30ed\u30fc\u30ab\u30eb\u3068\u672c\u756a\u3067PHP\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9055\u3046\u3068\u3001\u7247\u65b9\u3060\u3051\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u756a\u306b\u8fd1\u3044PHP\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3082\u691c\u67fb\u3057\u3001\u69cb\u6587\u691c\u67fb\u306e\u5f8c\u306bWordPress\u4e0a\u3067\u8868\u793a\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<\/aside>\n<h3 id=\"check-environments\" class=\"wpq-subheading\">7. \u30ed\u30fc\u30ab\u30eb\u3068\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3067\u3001\u6210\u529f\u3068\u5931\u6557\u306e\u4e21\u65b9\u3092\u8a66\u3059<\/h3>\n<p>\u6700\u521d\u306f\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306b\u8a72\u5f53\u3059\u308b\u516c\u958b\u6295\u7a3f\u30923\u4ef6\u4ee5\u4e0a\u7528\u610f\u3057\u3001\u753b\u9762\u306b\u51fa\u305f\u4ef6\u6570\u3068`posts_per_page`\u306e\u5024\u3092\u76ee\u3067\u898b\u6bd4\u3079\u307e\u3059\u3002\u305d\u306e\u5f8c\u30010\u4ef6\u30fb1\u4ef6\u306b\u306a\u308b\u6761\u4ef6\u3068\u3001\u5b9f\u969b\u306b\u4f7f\u3046\u4ef6\u6570\u3082\u8a66\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u672c\u756a\u306b\u8fd1\u3044\u69cb\u6210\u306e\u691c\u8a3c\u30b5\u30a4\u30c8\u3067\u3042\u308b\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3067\u3001PHP\u3001\u30c7\u30fc\u30bf\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3001\u30da\u30fc\u30b8\u9001\u308a\u3001PC\u30fb\u30b9\u30de\u30db\u306e\u5dee\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u672c\u756a\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u5171\u6709\u305b\u305a\u3001\u901a\u77e5\u30e1\u30fc\u30eb\u3084\u6c7a\u6e08\u3082\u5b9f\u9001\u4fe1\u30fb\u5b9f\u8ab2\u91d1\u306b\u3064\u306a\u304c\u3089\u306a\u3044\u72b6\u614b\u306b\u3057\u307e\u3059\u3002<\/p>\n<section class=\"quick-check-card wpq-checklist-card\"><h2>\u6700\u4f4e\u9650\u8a66\u3059\u8868\u793a\u72b6\u614b<\/h2><ul class=\"wpq-checklist\"><li>\u516c\u958b\u6295\u7a3f\u30923\u4ef6\u53d6\u5f97\u3057\u3001\u30bf\u30a4\u30c8\u30eb\u30fb\u30ea\u30f3\u30af\u30fb\u4e26\u3073\u9806\u304c\u6b63\u3057\u3044<\/li><li>\u8a72\u5f53\u6295\u7a3f\u304c0\u4ef6\u306e\u3068\u304d\u3001\u7a7a\u767d\u3084PHP\u8b66\u544a\u3067\u306f\u306a\u304f0\u4ef6\u8868\u793a\u306b\u306a\u308b<\/li><li>\u5b9f\u969b\u306b\u4f7f\u3046\u4ef6\u6570\u3078\u5909\u3048\u3066\u3082\u3001\u8868\u793a\u4ef6\u6570\u304c\u8a2d\u5b9a\u3069\u304a\u308a\u306b\u306a\u308b<\/li><li>\u4e0b\u66f8\u304d\u30fb\u975e\u516c\u958b\u6295\u7a3f\u304c\u610f\u56f3\u305b\u305a\u6df7\u3056\u3089\u306a\u3044<\/li><li>\u8ffd\u52a0\u4e00\u89a7\u306e\u5f8c\u306b\u3042\u308b\u30bf\u30a4\u30c8\u30eb\u3084\u30ea\u30f3\u30af\u304c\u5225\u6295\u7a3f\u3078\u5165\u308c\u66ff\u308f\u3089\u306a\u3044<\/li><li>PC\u3068\u30b9\u30de\u30db\u3067\u6a2a\u306b\u306f\u307f\u51fa\u3055\u305a\u3001\u30ea\u30f3\u30af\u3092\u64cd\u4f5c\u3067\u304d\u308b<\/li><li>\u30da\u30fc\u30b8\u9001\u308a\u3092\u4f7f\u3046\u5834\u5408\u30012\u30da\u30fc\u30b8\u76ee\u306e\u5185\u5bb9\u3068\u7dcf\u30da\u30fc\u30b8\u6570\u304c\u5408\u3046<\/li><\/ul><\/section>\n<p>WordPress\u306e`WP_DEBUG`\u3084`WP_DEBUG_LOG`\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30fb\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3067\u539f\u56e0\u3092\u8abf\u3079\u308b\u305f\u3081\u306b\u4f7f\u3044\u307e\u3059\u3002\u516c\u5f0f\u8cc7\u6599\u306f\u3001\u3053\u308c\u3089\u306e\u30c7\u30d0\u30c3\u30b0\u6a5f\u80fd\u3092\u516c\u958b\u4e2d\u306e\u672c\u756a\u30b5\u30a4\u30c8\u3067\u4f7f\u3046\u3053\u3068\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u753b\u9762\u3078\u30a8\u30e9\u30fc\u3092\u51fa\u3055\u305a\u30ed\u30b0\u3067\u78ba\u8a8d\u3057\u3001\u691c\u8a3c\u5f8c\u306f\u8a2d\u5b9a\u3092\u623b\u3057\u307e\u3059\u3002<\/p>\n<p>XServer for WordPress\u306e\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u540c\u671f\u3067\u306f\u3001`wp-content`\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u540c\u671f\u5bfe\u8c61\u3067\u3001WordPress\u672c\u4f53\u3068PHP\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u540c\u671f\u3055\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u540c\u30b5\u30fc\u30d3\u30b9\u56fa\u6709\u306e\u540c\u671f\u4ed5\u69d8\u3067\u3059\u3002\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u672c\u756a\u3068\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5148\u306b\u63c3\u3048\u3001\u540c\u671f\u65b9\u5411\u3068\u5bfe\u8c61\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u53e4\u3044\u691c\u8a3c\u7528\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u672c\u756a\u3078\u540c\u671f\u3059\u308b\u3068\u3001\u672c\u756a\u3067\u5897\u3048\u305f\u30c7\u30fc\u30bf\u3092\u4e0a\u66f8\u304d\u3059\u308b\u304a\u305d\u308c\u304c\u3042\u308a\u307e\u3059\u3002\u30b3\u30fc\u30c9\u3060\u3051\u306e\u5909\u66f4\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540c\u671f\u304c\u5fc5\u8981\u304b\u3082\u3001\u5206\u3051\u3066\u5224\u65ad\u3057\u307e\u3059\u3002<\/p>\n<h2 id=\"verified-locally\" class=\"h-underline section-heading\"><span class=\"section-heading-icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"shield-check\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\" \/>\n  <path d=\"m9 12 2 2 4-4\" \/>\n<\/svg><\/span><span class=\"section-heading-text\">\u65b0\u77403\u4ef6\u306e\u8868\u793a\u3068\u30010\u4ef6\u306e\u3068\u304d\u3092\u898b\u6bd4\u3079\u308b<\/span><\/h2>\n<p>\u5148\u307b\u3069\u306e\u30d1\u30fc\u30c4\u3092\u52d5\u304b\u3059\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u65b0\u7740\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u304c3\u4ef6\u4e26\u3073\u307e\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u30b5\u30a4\u30c8\u306b\u306f\u5148\u982d\u56fa\u5b9a\u306e\u8a18\u4e8b\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u512a\u5148\u8868\u793a\u3092\u7121\u52b9\u306b\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u901a\u5e38\u306e\u8a18\u4e8b\u3068\u540c\u3058\u3088\u3046\u306b\u516c\u958b\u65e5\u306e\u65b0\u3057\u3044\u9806\u3067\u4e26\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<figure class=\"wpq-screenshot-frame wpq-screenshot-frame--fit-contain\"><span class=\"wpq-screenshot-frame__media\" style=\"--wpq-screenshot-ratio:1620 \/ 1626;\"><img decoding=\"async\" src=\"https:\/\/wptoolslab.com\/query-lab\/wp-content\/uploads\/2026\/09\/wp-query-generated-code-checklist-SC-01.png\" alt=\"\u63b2\u8f09PHP\u3067\u516c\u958b\u65e5\u306e\u65b0\u3057\u3044\u9806\u306b3\u4ef6\u306e\u30bf\u30a4\u30c8\u30eb\u3068\u30ea\u30f3\u30af\u3092\u8868\u793a\u3057\u305f\u5171\u901a\u30b5\u30f3\u30d7\u30eb\u30b5\u30a4\u30c8\" loading=\"lazy\" \/><\/span><figcaption class=\"wpq-screenshot-frame__caption\"><span class=\"wpq-screenshot-frame__eyebrow\">\u751f\u6210\u6761\u4ef6\u3068\u8868\u793a\u30eb\u30fc\u30d7\u3092\u7d44\u307f\u5408\u308f\u305b\u308b<\/span><strong class=\"wpq-screenshot-frame__title\">\u65b0\u7740\u8a18\u4e8b\u304c3\u4ef6\u4e26\u3076\u8868\u793a\u4f8b<\/strong><p class=\"wpq-screenshot-frame__caption-text\">\u901a\u5e38\u6295\u7a3f\u306eID82\u30fb81\u30fb80\u3092\u53d6\u5f97\u3057\u305f\u8868\u793a\u3067\u3059\u3002\u30b5\u30a4\u30c8\u306e\u67a0\u306f\u5171\u901a\u30b5\u30f3\u30d7\u30eb\u3067\u3001\u8a18\u4e8b\u5185\u306ePHP\u304c\u30bf\u30a4\u30c8\u30eb\u3068\u30ea\u30f3\u30af\u306e\u4e00\u89a7\u3092\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u3002<\/p><\/figcaption><\/figure>\n<p>\u78ba\u8a8d\u306fWordPress 7.1\u3001PHP 8.4.20\u306e\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u884c\u3044\u307e\u3057\u305f\u3002\u8a66\u3059\u305f\u3081\u306b\u53d6\u5f97\u5019\u88dc\u30921\u4ef6\u30fb0\u4ef6\u3078\u7d5e\u308b\u3068\u30011\u4ef6\u3060\u3051\u306e\u30ea\u30f3\u30af\u3001\u307e\u305f\u306f\u300c\u8868\u793a\u3067\u304d\u308b\u8a18\u4e8b\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u300d\u3068\u3044\u3046\u6848\u5185\u3078\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002\u3053\u3046\u3057\u305f\u5c11\u306a\u3044\u4ef6\u6570\u3067\u3082\u7a7a\u767d\u3084\u8b66\u544a\u306b\u306a\u3089\u306a\u3044\u304b\u3001\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u8a66\u9a13\u7528\u306e\u5019\u88dc\u5236\u9650\u306f\u3001\u4e0a\u306e\u5b8c\u6210\u30b3\u30fc\u30c9\u306b\u306f\u542b\u3081\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u4e00\u89a7\u306e\u5f8c\u3067`wp_reset_postdata()`\u3092\u547c\u3076\u3068\u3001\u5143\u306e\u56fa\u5b9a\u30da\u30fc\u30b8ID83\u3078\u623b\u308b\u3053\u3068\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002\u78ba\u8a8d\u3057\u305f\u5185\u5bb9\u3092\u307e\u3068\u3081\u308b\u3068\u3001\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<div class=\"wpq-table-block\"><p class=\"wpq-table-hint\" aria-hidden=\"true\">\u8868\u306f\u6a2a\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059<\/p><div class=\"cause-table table-scroll wpq-table-wrap\" role=\"region\" tabindex=\"0\" aria-label=\"\u8868: \u78ba\u8a8d\u5bfe\u8c61 \/ \u671f\u5f85\u3059\u308b\u7d50\u679c \/ \u78ba\u8a8d\u65b9\u6cd5\"><table class=\"article-table table-priority wpq-article-table\"><thead><tr><th>\u78ba\u8a8d\u5bfe\u8c61<\/th><th>\u671f\u5f85\u3059\u308b\u7d50\u679c<\/th><th>\u78ba\u8a8d\u65b9\u6cd5<\/th><\/tr><\/thead><tbody><tr><td>PHP\u69cb\u6587<\/td><td>\u69cb\u6587\u30a8\u30e9\u30fc\u304c\u306a\u3044<\/td><td>\u63b2\u8f09PHP\u3092\u69cb\u6587\u89e3\u6790<\/td><\/tr><tr><td>\u53d6\u5f97\u4ef6\u6570<\/td><td>\u516c\u958b\u6e08\u307f\u901a\u5e38\u6295\u7a3f\u304c3\u4ef6<\/td><td>\u53d6\u5f97\u3057\u305f\u6295\u7a3fID\u3092\u78ba\u8a8d<\/td><\/tr><tr><td>\u4e26\u3073\u9806<\/td><td>\u516c\u958b\u65e5\u306e\u65b0\u3057\u3044\u9806<\/td><td>3\u4ef6\u306e\u65e5\u4ed8\u3092\u6bd4\u8f03<\/td><\/tr><tr><td>1\u4ef6\u30fb0\u4ef6\u6642<\/td><td>1\u4ef6\u306e\u30ea\u30f3\u30af\u307e\u305f\u306f\u6848\u5185\u6587<\/td><td>\u8a66\u9a13\u7528\u306b\u53d6\u5f97\u5019\u88dc\u3092\u9650\u5b9a\u3057\u3066\u5206\u5c90\u3092\u78ba\u8a8d<\/td><\/tr><tr><td>\u30eb\u30fc\u30d7\u5f8c<\/td><td>\u30e1\u30a4\u30f3\u6295\u7a3f\u3078\u623b\u308b<\/td><td>wp_reset_postdata()\u306e\u524d\u5f8c\u3092\u6bd4\u8f03<\/td><\/tr><\/tbody><\/table><\/div><\/div>\n<p>\u3053\u3053\u3067\u78ba\u8a8d\u3059\u308b\u306e\u306f\u3001WP Query Builder\u304c\u4efb\u610f\u306e\u30b5\u30a4\u30c8\u30c7\u30fc\u30bf\u307e\u3067\u4fdd\u8a3c\u3059\u308b\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u540c\u3058`$args`\u3067\u3082\u3001\u6295\u7a3f\u30bf\u30a4\u30d7\u3001\u4fdd\u5b58\u5024\u3001\u4ef6\u6570\u3001\u4ed6\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30d5\u30c3\u30af\u304c\u9055\u3048\u3070\u7d50\u679c\u306f\u5909\u308f\u308a\u307e\u3059\u3002\u81ea\u5206\u306e\u691c\u8a3c\u74b0\u5883\u3067\u540c\u3058\u89b3\u70b9\u3092\u518d\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 id=\"if-it-breaks\" class=\"h-underline section-heading\"><span class=\"section-heading-icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"refresh\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\" \/>\n  <path d=\"M21 3v5h-5\" \/>\n  <path d=\"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\" \/>\n  <path d=\"M8 16H3v5\" \/>\n<\/svg><\/span><span class=\"section-heading-text\">\u53cd\u6620\u5f8c\u306b\u58ca\u308c\u305f\u3089\u3001\u5909\u66f4\u3092\u5897\u3084\u3055\u305a\u5143\u3078\u623b\u3059<\/span><\/h2>\n<p>\u753b\u9762\u304c\u771f\u3063\u767d\u306b\u306a\u3063\u305f\u308a\u300c\u30b5\u30a4\u30c8\u306b\u91cd\u5927\u306a\u30a8\u30e9\u30fc\u304c\u3042\u308a\u307e\u3057\u305f\u300d\u3068\u8868\u793a\u3055\u308c\u305f\u308a\u3057\u305f\u3089\u3001\u5225\u306e\u4fee\u6b63\u3092\u6b21\u3005\u306b\u8db3\u3057\u307e\u305b\u3093\u3002\u6700\u521d\u306b\u3001\u76f4\u524d\u306b\u5909\u66f4\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3078\u623b\u3057\u307e\u3059\u3002<\/p>\n<section class=\"debug-steps wpq-steps-card\"><h2>\u554f\u984c\u304c\u8d77\u304d\u305f\u3068\u304d\u306e\u623b\u3057\u65b9<\/h2><ol class=\"step-list wpq-steps\"><li><span class=\"step-number wpq-step-no\">1<\/span><div class=\"step-body wpq-step-body\">\u76f4\u524d\u306b\u5909\u66f4\u3057\u305f\u5b50\u30c6\u30fc\u30de\u307e\u305f\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u3001\u78ba\u8a8d\u6e08\u307f\u306e\u5909\u66f4\u524d\u7248\u3078\u623b\u3059<\/div><\/li><li><span class=\"step-number wpq-step-no\">2<\/span><div class=\"step-body wpq-step-body\">\u30b5\u30a4\u30c8\u3068\u7ba1\u7406\u753b\u9762\u304c\u5fa9\u65e7\u3057\u305f\u304b\u78ba\u8a8d\u3057\u3001PHP\u30fbWordPress\u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u4fdd\u5b58\u3059\u308b<\/div><\/li><li><span class=\"step-number wpq-step-no\">3<\/span><div class=\"step-body wpq-step-body\">\u5909\u66f4\u524d\u5f8c\u306e\u5dee\u5206\u3092\u898b\u3066\u3001\u69cb\u6587\u3001\u95a2\u6570\u540d\u306e\u91cd\u8907\u3001\u8a2d\u7f6e\u5834\u6240\u3001\u5b9f\u30c7\u30fc\u30bf\u306e\u5024\u30921\u9805\u76ee\u305a\u3064\u78ba\u8a8d\u3059\u308b<\/div><\/li><li><span class=\"step-number wpq-step-no\">4<\/span><div class=\"step-body wpq-step-body\">\u539f\u56e0\u3092\u76f4\u3057\u305f\u30b3\u30fc\u30c9\u306f\u30ed\u30fc\u30ab\u30eb\u3068\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3067\u518d\u691c\u67fb\u3057\u3001\u540c\u3058\u672c\u756a\u30d5\u30a1\u30a4\u30eb\u3078\u518d\u53cd\u6620\u3059\u308b<\/div><\/li><\/ol><\/section>\n<p>\u69cb\u6587\u30a8\u30e9\u30fc\u3068\u3001\u7d50\u679c\u304c0\u4ef6\u306b\u306a\u308b\u554f\u984c\u306f\u5206\u3051\u307e\u3059\u3002\u69cb\u6587\u30a8\u30e9\u30fc\u306a\u3089\u307e\u305a\u30d5\u30a1\u30a4\u30eb\u3092\u623b\u3057\u30010\u4ef6\u3067\u3082\u30b5\u30a4\u30c8\u304c\u52d5\u3044\u3066\u3044\u308b\u306a\u3089`post_type`\u3001`post_status`\u3001\u30b9\u30e9\u30c3\u30b0\u3001ID\u3001\u30e1\u30bf\u30ad\u30fc\u3092\u6700\u5c0f\u6761\u4ef6\u304b\u3089\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h2 id=\"official-docs\" class=\"h-underline section-heading\"><span class=\"section-heading-icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"book\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M12 5v16\" \/>\n  <path d=\"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z\" \/>\n<\/svg><\/span><span class=\"section-heading-text\">\u30b3\u30fc\u30c9\u3092\u8cbc\u308b\u524d\u306b\u78ba\u8a8d\u3059\u308b\u516c\u5f0f\u8cc7\u6599<\/span><\/h2>\n<p>\u5b50\u30c6\u30fc\u30de\u3084\u30b5\u30a4\u30c8\u56fa\u6709\u30d7\u30e9\u30b0\u30a4\u30f3\u3078\u7f6e\u304f\u7406\u7531\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u30c7\u30d0\u30c3\u30b0\u306e\u65b9\u6cd5\u3001\u8ffd\u52a0\u30eb\u30fc\u30d7\u5f8c\u306b\u6295\u7a3f\u30c7\u30fc\u30bf\u3092\u623b\u3059\u51e6\u7406\u306f\u3001\u6b21\u306e\u516c\u5f0f\u8cc7\u6599\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<section class=\"official-docs-card wpq-reference-card wpq-reference-card--official\"><div class=\"official-docs-head\"><span class=\"official-docs-icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"book\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M12 5v16\" \/>\n  <path d=\"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z\" \/>\n<\/svg><\/span><div><p class=\"eyebrow wpq-eyebrow\">\u516c\u5f0f\u30ea\u30f3\u30af<\/p><h2>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/h2><\/div><\/div><ul class=\"wpq-reference-list\"><li class=\"wpq-reference-item\"><a class=\"wpq-reference-item__link\" href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"wpq-reference-item__copy\"><strong class=\"wpq-reference-item__title\">Child Themes<\/strong><span class=\"wpq-reference-item__description\">\u89aa\u30c6\u30fc\u30de\u3092\u76f4\u63a5\u7de8\u96c6\u305b\u305a\u3001\u5b50\u30c6\u30fc\u30de\u3078\u5909\u66f4\u3092\u5206\u3051\u308b\u7406\u7531\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d<\/span><\/span><span class=\"wpq-reference-item__hint\" aria-hidden=\"true\"><svg data-wpq-icon=\"external\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M15 3h6v6\" \/>\n  <path d=\"M10 14 21 3\" \/>\n  <path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" \/>\n<\/svg><\/span><\/a><\/li><li class=\"wpq-reference-item\"><a class=\"wpq-reference-item__link\" href=\"https:\/\/developer.wordpress.org\/themes\/core-concepts\/custom-functionality\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"wpq-reference-item__copy\"><strong class=\"wpq-reference-item__title\">Custom Functionality<\/strong><span class=\"wpq-reference-item__description\">functions.php\u3068\u30b5\u30a4\u30c8\u56fa\u6709\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u5f79\u5272\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d<\/span><\/span><span class=\"wpq-reference-item__hint\" aria-hidden=\"true\"><svg data-wpq-icon=\"external\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M15 3h6v6\" \/>\n  <path d=\"M10 14 21 3\" \/>\n  <path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" \/>\n<\/svg><\/span><\/a><\/li><li class=\"wpq-reference-item\"><a class=\"wpq-reference-item__link\" href=\"https:\/\/developer.wordpress.org\/advanced-administration\/security\/backup\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"wpq-reference-item__copy\"><strong class=\"wpq-reference-item__title\">WordPress Backups<\/strong><span class=\"wpq-reference-item__description\">\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e21\u65b9\u304c\u5fc5\u8981\u306a\u7406\u7531\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d<\/span><\/span><span class=\"wpq-reference-item__hint\" aria-hidden=\"true\"><svg data-wpq-icon=\"external\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M15 3h6v6\" \/>\n  <path d=\"M10 14 21 3\" \/>\n  <path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" \/>\n<\/svg><\/span><\/a><\/li><li class=\"wpq-reference-item\"><a class=\"wpq-reference-item__link\" href=\"https:\/\/developer.wordpress.org\/advanced-administration\/debug\/debug-wordpress\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"wpq-reference-item__copy\"><strong class=\"wpq-reference-item__title\">Debugging in WordPress<\/strong><span class=\"wpq-reference-item__description\">\u30ed\u30fc\u30ab\u30eb\u30fb\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3067\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d<\/span><\/span><span class=\"wpq-reference-item__hint\" aria-hidden=\"true\"><svg data-wpq-icon=\"external\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M15 3h6v6\" \/>\n  <path d=\"M10 14 21 3\" \/>\n  <path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" \/>\n<\/svg><\/span><\/a><\/li><li class=\"wpq-reference-item\"><a class=\"wpq-reference-item__link\" href=\"https:\/\/developer.wordpress.org\/reference\/classes\/wp_query\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"wpq-reference-item__copy\"><strong class=\"wpq-reference-item__title\">WP_Query Class<\/strong><span class=\"wpq-reference-item__description\">\u6a19\u6e96\u30eb\u30fc\u30d7\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3001the_post()\u5f8c\u306e\u51e6\u7406\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d<\/span><\/span><span class=\"wpq-reference-item__hint\" aria-hidden=\"true\"><svg data-wpq-icon=\"external\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M15 3h6v6\" \/>\n  <path d=\"M10 14 21 3\" \/>\n  <path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" \/>\n<\/svg><\/span><\/a><\/li><li class=\"wpq-reference-item\"><a class=\"wpq-reference-item__link\" href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_reset_postdata\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"wpq-reference-item__copy\"><strong class=\"wpq-reference-item__title\">wp_reset_postdata()<\/strong><span class=\"wpq-reference-item__description\">\u8ffd\u52a0\u30eb\u30fc\u30d7\u5f8c\u306b\u30e1\u30a4\u30f3\u6295\u7a3f\u3078\u623b\u3059\u7406\u7531\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d<\/span><\/span><span class=\"wpq-reference-item__hint\" aria-hidden=\"true\"><svg data-wpq-icon=\"external\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M15 3h6v6\" \/>\n  <path d=\"M10 14 21 3\" \/>\n  <path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" \/>\n<\/svg><\/span><\/a><\/li><li class=\"wpq-reference-item\"><a class=\"wpq-reference-item__link\" href=\"https:\/\/www.php.net\/manual\/en\/features.commandline.options.php\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"wpq-reference-item__copy\"><strong class=\"wpq-reference-item__title\">PHP command line options<\/strong><span class=\"wpq-reference-item__description\">php -l\u304c\u5b9f\u884c\u305b\u305a\u306b\u69cb\u6587\u3092\u691c\u67fb\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d<\/span><\/span><span class=\"wpq-reference-item__hint\" aria-hidden=\"true\"><svg data-wpq-icon=\"external\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M15 3h6v6\" \/>\n  <path d=\"M10 14 21 3\" \/>\n  <path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" \/>\n<\/svg><\/span><\/a><\/li><li class=\"wpq-reference-item\"><a class=\"wpq-reference-item__link\" href=\"https:\/\/wp.xserver.ne.jp\/support\/manual\/man_wp_staging_sync.php\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"wpq-reference-item__copy\"><strong class=\"wpq-reference-item__title\">XServer for WordPress \u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u540c\u671f<\/strong><span class=\"wpq-reference-item__description\">\u540c\u671f\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u30fbDB\u3068\u3001\u540c\u671f\u3055\u308c\u306a\u3044WordPress\u30fbPHP\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d<\/span><\/span><span class=\"wpq-reference-item__hint\" aria-hidden=\"true\"><svg data-wpq-icon=\"external\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M15 3h6v6\" \/>\n  <path d=\"M10 14 21 3\" \/>\n  <path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" \/>\n<\/svg><\/span><\/a><\/li><\/ul><\/section>\n<h2 id=\"faq\" class=\"h-underline section-heading\"><span class=\"section-heading-icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"search\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"m21 21-4.34-4.34\" \/>\n  <circle cx=\"11\" cy=\"11\" r=\"8\" \/>\n<\/svg><\/span><span class=\"section-heading-text\">\u751f\u6210\u30b3\u30fc\u30c9\u3092\u8cbc\u308b\u524d\u306e\u3088\u304f\u3042\u308b\u8cea\u554f<\/span><\/h2>\n<p>\u3053\u3053\u307e\u3067\u306e\u5185\u5bb9\u3067\u8ff7\u3044\u3084\u3059\u3044\u70b9\u3092\u3001\u8cea\u554f\u3068\u56de\u7b54\u306b\u5206\u3051\u3066\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n<section class=\"faq-section wpq-faq-section\"><div class=\"faq-stack wpq-faq-stack\"><details class=\"faq-item wpq-faq-item\"><summary>\u751f\u6210\u30b3\u30fc\u30c9\u3092\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u672c\u6587\u3078\u8cbc\u308c\u3070\u52d5\u304d\u307e\u3059\u304b\uff1f<\/summary><div class=\"faq-answer wpq-faq-answer\"><p>\u3044\u3044\u3048\u3002WP Query Builder\u304c\u4f5c\u308b$args\u306fPHP\u306e\u53d6\u5f97\u6761\u4ef6\u3067\u3059\u3002\u56fa\u5b9a\u30da\u30fc\u30b8\u672c\u6587\u3078\u8cbc\u3089\u305a\u3001Query Loop\u3067\u8db3\u308a\u308b\u304b\u3092\u5148\u306b\u78ba\u8a8d\u3057\u3001PHP\u304c\u5fc5\u8981\u306a\u3089\u5b50\u30c6\u30fc\u30de\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u7b49\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p><\/div><\/details><details class=\"faq-item wpq-faq-item\"><summary>functions.php\u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u3069\u3061\u3089\u3078\u8cbc\u308a\u307e\u3059\u304b\uff1f<\/summary><div class=\"faq-answer wpq-faq-answer\"><p>\u30da\u30fc\u30b8\u306e\u9014\u4e2d\u3078\u8ffd\u52a0\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u306a\u3089\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3084\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u304c\u57fa\u672c\u3067\u3059\u3002\u30c6\u30fc\u30de\u306b\u4f9d\u5b58\u3057\u306a\u3044\u6a5f\u80fd\u306a\u3089\u30b5\u30a4\u30c8\u56fa\u6709\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u691c\u8a0e\u3057\u307e\u3059\u3002\u30e1\u30a4\u30f3\u4e00\u89a7\u306e\u6761\u4ef6\u5909\u66f4\u3067\u306fpre_get_posts\u7b49\u304c\u5019\u88dc\u3067\u3059\u3002<\/p><\/div><\/details><details class=\"faq-item wpq-faq-item\"><summary>php -l\u304c\u901a\u308c\u3070\u3001\u305d\u306e\u307e\u307e\u672c\u756a\u3078\u53cd\u6620\u3057\u3066\u3088\u3044\u3067\u3059\u304b\uff1f<\/summary><div class=\"faq-answer wpq-faq-answer\"><p>\u3044\u3044\u3048\u3002php -l\u306fPHP\u69cb\u6587\u3060\u3051\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u5b9f\u5728\u3059\u308b\u6295\u7a3f\u30bf\u30a4\u30d7\u3084\u30b9\u30e9\u30c3\u30b0\u3001\u4ef6\u6570\u3001\u4e26\u3073\u9806\u30010\u4ef6\u6642\u3001PC\u30fb\u30b9\u30de\u30db\u3001\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u30ed\u30fc\u30ab\u30eb\u3068\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p><\/div><\/details><details class=\"faq-item wpq-faq-item\"><summary>\u5909\u66f4\u3059\u308b\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u4fdd\u5b58\u3059\u308c\u3070\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u306a\u308a\u307e\u3059\u304b\uff1f<\/summary><div class=\"faq-answer wpq-faq-answer\"><p>\u76f4\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u3078\u623b\u3059\u7528\u9014\u306b\u306f\u5f79\u7acb\u3061\u307e\u3059\u304c\u3001\u5178\u578b\u7684\u306aWordPress\u30b5\u30a4\u30c8\u5168\u4f53\u306e\u5fa9\u5143\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e21\u65b9\u304c\u5fc5\u8981\u3067\u3059\u3002\u5fa9\u5143\u62c5\u5f53\u3068\u624b\u9806\u307e\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><\/div><\/details><\/div><\/section>\n<section class=\"final-checklist wpq-checklist-card wpq-checklist-card--final\"><div class=\"final-checklist-head\"><span class=\"final-checklist-icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"check\" aria-hidden=\"true\" focusable=\"false\" class=\"wpq-icon-svg\"\n  xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n \n \n  viewBox=\"0 0 24 24\"\n  fill=\"none\"\n  stroke=\"currentColor\"\n  stroke-width=\"2\"\n  stroke-linecap=\"round\"\n  stroke-linejoin=\"round\"\n>\n  <path d=\"M20 6 9 17l-5-5\" \/>\n<\/svg><\/span><h2>\u672c\u756a\u53cd\u6620\u524d\u306e\u6700\u7d42\u30c1\u30a7\u30c3\u30af<\/h2><\/div><ul class=\"wpq-checklist\"><li>\u5909\u66f4\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3068\u5b9f\u884c\u3055\u308c\u308b\u5834\u6240\u304c\u660e\u78ba\u3067\u3001\u89aa\u30c6\u30fc\u30de\u3092\u76f4\u63a5\u66f8\u304d\u63db\u3048\u3066\u3044\u306a\u3044<\/li><li>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u4fdd\u5b58\u5148\u304c\u5206\u304b\u308a\u3001\u7ba1\u7406\u753b\u9762\u306b\u5165\u308c\u306a\u304f\u3066\u3082\u5909\u66f4\u524d\u3078\u623b\u305b\u308b<\/li><li>\u672c\u756a\u306b\u8fd1\u3044PHP\u74b0\u5883\u3067\u69cb\u6587\u30a8\u30e9\u30fc\u304c\u306a\u304f\u3001WordPress\u306e\u30ed\u30b0\u306b\u3082\u554f\u984c\u304c\u306a\u3044<\/li><li>3\u4ef6\u30fb1\u4ef6\u30fb0\u4ef6\u306e\u8868\u793a\u3001\u8a18\u4e8b\u30ea\u30f3\u30af\u3001\u30eb\u30fc\u30d7\u5f8c\u306e\u6295\u7a3f\u60c5\u5831\u3092\u78ba\u8a8d\u3067\u304d\u3066\u3044\u308b<\/li><li>\u672c\u756a\u53cd\u6620\u306e\u5bfe\u8c61\u3068\u624b\u9806\u304c\u6c7a\u307e\u308a\u3001\u4e0d\u8981\u306aDB\u540c\u671f\u3067\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u3092\u4e0a\u66f8\u304d\u3057\u306a\u3044<\/li><\/ul><\/section>\n","protected":false},"excerpt":{"rendered":"<p>WP Query Builder\u3067\u4f5c\u3063\u305f$args\u3092WordPress\u3078\u53cd\u6620\u3059\u308b\u524d\u306b\u3001\u8a2d\u7f6e\u5834\u6240\u3001\u5b50\u30c6\u30fc\u30de\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u69cb\u6587\u3001\u5b9f\u30c7\u30fc\u30bf\u3001\u623b\u3057\u65b9\u30927\u9805\u76ee\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":3,"featured_media":4211,"template":"","meta":{"wpq_kicker":"\u30c4\u30fc\u30eb\u9023\u643a","wpq_lead":"WP Query Builder\u3067\u30b3\u30fc\u30c9\u3092\u4f5c\u308c\u305f\u3082\u306e\u306e\u3001\u300c\u3053\u306e\u307e\u307e\u672c\u756a\u30b5\u30a4\u30c8\u3078\u8cbc\u3063\u3066\u5927\u4e08\u592b\uff1f\u300d\u3068\u624b\u304c\u6b62\u307e\u3063\u3066\u3044\u307e\u305b\u3093\u304b\u3002\u5148\u306b\u78ba\u8a8d\u3057\u305f\u3044\u306e\u306f\u3001\u30b3\u30fc\u30c9\u306e\u7d30\u90e8\u3088\u308a\u3082\u3001\u6b63\u3057\u3044\u5834\u6240\u3078\u7f6e\u3051\u308b\u3053\u3068\u3001\u9593\u9055\u3048\u3066\u3082\u623b\u305b\u308b\u3053\u3068\u3001\u5b9f\u30c7\u30fc\u30bf\u3067\u8a66\u305b\u308b\u3053\u3068\u3067\u3059\u3002\u751f\u6210\u3055\u308c\u305f$args\u3092\u5b89\u5168\u306b\u53cd\u6620\u3059\u308b\u307e\u3067\u30927\u9805\u76ee\u306b\u5206\u3051\u307e\u3059\u3002","wpq_hero_title_line1":"","wpq_hero_title_line2":"","wpq_hero_title_accent":"","wpq_hero_thumbnail_alt":"WP Query Builder\u306e\u751f\u6210\u30b3\u30fc\u30c9\u3092WordPress\u3078\u5b89\u5168\u306b\u8cbc\u308b\u65b9\u6cd5\uff5c\u672c\u756a\u524d\u306e7\u9805\u76ee \u306e\u30d2\u30fc\u30ed\u30fc\u30b5\u30e0\u30cd\u30a4\u30eb","wpq_hero_summary_mode":"","wpq_hero_summary_label":"\u8cbc\u308b\u524d\u306b\u78ba\u8a8d","wpq_hero_summary_items":"`\u7f6e\u304f\u5834\u6240`::\u5b50\u30c6\u30fc\u30de \/ \u30d7\u30e9\u30b0\u30a4\u30f3\n`\u623b\u3059\u6e96\u5099`::\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 \/ \u5fa9\u5143\u624b\u9806","wpq_reading_time":"","wpq_difficulty_label":"","wpq_difficulty_stars":"2","wpq_target_audience":"WP Query Builder\u3067$args\u3092\u4f5c\u3063\u305f\u3082\u306e\u306e\u3001\u305d\u306e\u307e\u307e\u672c\u756a\u30b5\u30a4\u30c8\u3078\u8cbc\u3063\u3066\u3088\u3044\u304b\u4e0d\u5b89\u306aWordPress\u521d\u5fc3\u8005\u301c\u5236\u4f5c\u8005","wpq_updated_label":"","wpq_summary_items":"","wpq_scope_include":"","wpq_scope_exclude":"","wpq_quick_checks":"","wpq_sidebar_notes":"","wpq_sidebar_promo_text":"","wpq_sidebar_promo_label":"","wpq_sidebar_promo_url":"","wpq_builder_fields":"","wpq_official_links":"child themes|https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\ncustom functionality|https:\/\/developer.wordpress.org\/themes\/core-concepts\/custom-functionality\/\nbackup|https:\/\/developer.wordpress.org\/advanced-administration\/security\/backup\/\ndebug wordpress|https:\/\/developer.wordpress.org\/advanced-administration\/debug\/debug-wordpress\/\nwp query|https:\/\/developer.wordpress.org\/reference\/classes\/wp_query\/\nwp reset postdata|https:\/\/developer.wordpress.org\/reference\/functions\/wp_reset_postdata\/\nfeatures.commandline.options.php|https:\/\/www.php.net\/manual\/en\/features.commandline.options.php\nman wp staging sync.php|https:\/\/wp.xserver.ne.jp\/support\/manual\/man_wp_staging_sync.php","wpq_pr_notice":"","wpq_affiliate_placement":"inline","wpq_affiliate_program":"xserver","wpq_affiliate_context":"test-environment","wpq_support_mode":"","wpq_popularity_score":"","wpq_author_box_name":"","wpq_author_box_role":"","wpq_author_box_body":"","wpq_author_box_avatar":"","wpq_author_box_avatar_url":"","wpq_author_avatar_url":"","wpq_reader_avatar_url":"","wpq_editor_avatar_url":"","footnotes":""},"categories":[114],"tags":[146,160,149,115],"wpq_card_label":[8,4],"wpq_difficulty":[11],"class_list":["post-4086","wpq_article","type-wpq_article","status-publish","has-post-thumbnail","hentry","category-114","tag-wp-query-builder","tag-160","tag-149","tag-115"],"_links":{"self":[{"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_article\/4086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_article"}],"about":[{"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/types\/wpq_article"}],"author":[{"embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":1,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_article\/4086\/revisions"}],"predecessor-version":[{"id":4249,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_article\/4086\/revisions\/4249"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/media\/4211"}],"wp:attachment":[{"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/media?parent=4086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/categories?post=4086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/tags?post=4086"},{"taxonomy":"wpq_card_label","embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_card_label?post=4086"},{"taxonomy":"wpq_difficulty","embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_difficulty?post=4086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}