{"id":217,"date":"2026-05-31T01:27:08","date_gmt":"2026-05-31T01:27:08","guid":{"rendered":"https:\/\/wptoolslab.com\/query-lab\/glossary\/no-found-rows\/"},"modified":"2026-08-29T22:46:03","modified_gmt":"2026-08-29T13:46:03","slug":"no-found-rows","status":"publish","type":"wpq_glossary","link":"https:\/\/wptoolslab.com\/query-lab\/glossary\/no-found-rows\/","title":{"rendered":"no_found_rows"},"content":{"rendered":"<section class=\"conclusion wpq-conclusion\"><h2 class=\"wpq-conclusion__title\">\u307e\u305a\u7d50\u8ad6<\/h2><p>`no_found_rows` \u306f\u3001\u6761\u4ef6\u306b\u5408\u3046\u6295\u7a3f\u306e\u7dcf\u4ef6\u6570\u3092\u6c42\u3081\u308b\u8ffd\u52a0\u51e6\u7406\u3092\u7701\u304f\u5f15\u6570\u3067\u3059\u3002\u30da\u30fc\u30b8\u7dcf\u6570\u304c\u4e0d\u8981\u306a\u4e00\u89a7\u3067\u306f\u8ca0\u8377\u3092\u6e1b\u3089\u305b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u3084\u300e\u5168\u25cb\u4ef6\u300f\u8868\u793a\u304c\u5fc5\u8981\u306a\u6642\u306b `true` \u3078\u3059\u308b\u3068\u3001\u5fc5\u8981\u306a\u7dcf\u6570\u3092\u5f97\u3089\u308c\u307e\u305b\u3093\u3002<\/p>\n<\/section>\n<h2 id=\"usage\" 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\">\u3069\u3046\u3044\u3046\u6642\u306b\u4f7f\u3046\u304b<\/span><\/h2>\n<p>\u95a2\u9023\u8a18\u4e8b3\u4ef6\u3001\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u65b0\u77405\u4ef6\u3001\u5185\u90e8\u30d0\u30c3\u30c1\u306e\u5148\u982d10\u4ef6\u306a\u3069\u3001\u6b21\u30da\u30fc\u30b8\u3092\u4f5c\u3089\u306a\u3044\u30af\u30a8\u30ea\u3067\u5019\u88dc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>`max_num_pages` \u3084 `found_posts` \u3092\u5f8c\u304b\u3089\u4f7f\u3046\u30b3\u30fc\u30c9\u304c\u306a\u3044\u304b\u3092\u691c\u7d22\u3057\u3066\u304b\u3089\u5909\u66f4\u3057\u307e\u3059\u3002\u753b\u9762\u306b\u30da\u30fc\u30b8\u9001\u308a\u304c\u306a\u304f\u3066\u3082\u3001\u5225\u51e6\u7406\u3067\u7dcf\u6570\u3092\u53c2\u7167\u3057\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ef6\u6570\u304c\u5c11\u306a\u3044\u30c6\u30b9\u30c8\u74b0\u5883\u3067\u306f\u5dee\u304c\u898b\u3048\u306b\u304f\u3044\u305f\u3081\u3001\u672c\u756a\u306b\u8fd1\u3044\u4ef6\u6570\u3067\u8a08\u6e2c\u3057\u307e\u3059\u3002<\/p>\n<h2 id=\"difference\" 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\">\u8fd1\u3044\u5f15\u6570\u3068\u306e\u9055\u3044<\/span><\/h2>\n<p>`posts_per_page` \u306f\u8fd4\u3059\u4ef6\u6570\u3092\u5236\u9650\u3057\u307e\u3059\u3002`no_found_rows` \u306f\u3001\u305d\u306e\u5236\u9650\u3068\u306f\u5225\u306b\u7dcf\u4ef6\u6570\u3092\u6570\u3048\u308b\u51e6\u7406\u3092\u884c\u3046\u304b\u3069\u3046\u304b\u3067\u3059\u3002<\/p>\n<p>`cache_results` \u306a\u3069\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u5f15\u6570\u3068\u3082\u5f79\u5272\u304c\u9055\u3044\u307e\u3059\u3002\u7dcf\u6570\u304c\u4e0d\u8981\u3060\u304b\u3089\u7701\u304f\u3001\u3068\u3044\u3046\u6761\u4ef6\u304c\u306f\u3063\u304d\u308a\u3057\u3066\u3044\u308b\u6642\u3060\u3051\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h2 id=\"builder\" class=\"h-underline section-heading\"><span class=\"section-heading-icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"builder\" 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\">Builder\u3067\u306e\u6271\u3044<\/span><\/h2>\n<p>WP Query Builder \u3067\u306f\u3001\u30da\u30fc\u30b8\u9001\u308a\u3092\u4f7f\u308f\u306a\u3044\u8a2d\u5b9a\u306e\u6642\u3060\u3051\u5019\u88dc\u3068\u3057\u3066\u6848\u5185\u3067\u304d\u307e\u3059\u3002\u5e38\u6642\u30aa\u30f3\u306b\u3059\u308b\u9ad8\u901f\u5316\u30b9\u30a4\u30c3\u30c1\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u306b\u3057\u305f\u3089\u8b66\u544a\u3092\u51fa\u3059\u304b\u3001\u81ea\u52d5\u7684\u306b\u672a\u6307\u5b9a\u3078\u623b\u3059\u3068\u4e8b\u6545\u3092\u6e1b\u3089\u305b\u307e\u3059\u3002<\/p>\n<h2 id=\"practical-article\" 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\">\u4f7f\u3044\u3069\u3053\u308d\u30fb\u907f\u3051\u3069\u3053\u308d\u3068\u5b9f\u8df5\u78ba\u8a8d<\/span><\/h2>\n<p>\u6b21\u30da\u30fc\u30b8\u3084\u7dcf\u4ef6\u6570\u304c\u4e0d\u8981\u306a\u5358\u767a\u4e00\u89a7\u3067\u3001\u7dcf\u4ef6\u6570\u8a08\u7b97\u3092\u7701\u304f\u52b9\u679c\u3092\u8a08\u6e2c\u3067\u304d\u305f\u6642\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u3001\u5168\u4f53\u4ef6\u6570\u8868\u793a\u3001`max_num_pages` \u304c\u5fc5\u8981\u306a\u4e00\u89a7\u3067\u306f `true` \u306b\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>\u53d6\u5f97\u6295\u7a3f\u306f\u8868\u793a\u3067\u304d\u3066\u3082\u30da\u30fc\u30b8\u7dcf\u6570\u304c\u4f5c\u308c\u306a\u304f\u306a\u308b\u305f\u3081\u3001\u901f\u5ea6\u8a2d\u5b9a\u3068\u753b\u9762\u8981\u4ef6\u3092\u5225\u3005\u306b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e00\u89a7\u304c\u901f\u304f\u306a\u308b\u53ef\u80fd\u6027\u3068\u5f15\u304d\u63db\u3048\u306b\u7dcf\u30da\u30fc\u30b8\u6570\u3092\u5931\u3046\u305f\u3081\u3001\u30da\u30fc\u30b8\u9001\u308a\u3092\u51fa\u3055\u306a\u3044\u753b\u9762\u3060\u3051\u304c\u5019\u88dc\u3067\u3059\u3002<\/p>\n<p>\u540c\u3058\u6761\u4ef6\u3067 `found_posts`\u3001`max_num_pages`\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u554f\u3044\u5408\u308f\u305b\u56de\u6570\u3001\u8868\u793a\u3055\u308c\u305f\u6295\u7a3fID\u3092\u6307\u5b9a\u524d\u5f8c\u306b\u6bd4\u8f03\u3057\u3001\u5931\u3046\u60c5\u5831\u3092\u8a18\u9332\u3057\u307e\u3059\u3002<\/p>\n<a class=\"deep-link-card wpq-related-link wpq-related-link--internal\" href=\"https:\/\/wptoolslab.com\/query-lab\/articles\/wp-query-pagination-not-working\/\"><span class=\"article-thumb wpq-related-link__thumb\"><img decoding=\"async\" alt=\"WP_Query\u3067\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u304c\u52d5\u304b\u306a\u3044\u539f\u56e0\uff5c2\u30da\u30fc\u30b8\u76ee\u4ee5\u964d\u304c\u540c\u3058\u30fb404\u3082\u78ba\u8a8d \u306e\u30b5\u30e0\u30cd\u30a4\u30eb\" src=\"https:\/\/wptoolslab.com\/query-lab\/wp-content\/uploads\/2026\/08\/wp-query-pagination-not-working-card.png\" loading=\"lazy\" \/><\/span><div class=\"deep-link-copy wpq-related-link__copy\"><small>\u5b9f\u8df5\u8a18\u4e8b\u3067\u78ba\u8a8d<\/small><b>WP_Query\u3067\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u304c\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u539f\u56e0<\/b><p>\u30da\u30fc\u30b8\u7dcf\u6570\u304c0\u307e\u305f\u306f1\u306b\u306a\u308b\u75c7\u72b6\u3068\u3001`no_found_rows` \u3092\u4f7f\u3048\u306a\u3044\u6761\u4ef6\u3092\u5b9f\u4f8b\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p><span class=\"jump\"><span>\u8a18\u4e8b\u3092\u8aad\u3080 \u2192<\/span><\/span><\/div><\/a>\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\">WordPress\u306e\u4ed5\u69d8\u3067\u78ba\u8a8d\u3059\u308b\u30dd\u30a4\u30f3\u30c8<\/span><\/h2>\n<p>\u516c\u5f0f\u306e WP_Query \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067\u306f\u3001\u7dcf\u4ef6\u6570\u304c\u4e0d\u8981\u306a\u6642\u306b `true` \u3092\u4f7f\u3046\u6027\u80fd\u4e0a\u306e\u610f\u56f3\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>WP_Query \u306e `set_found_posts()` \u304c\u3053\u306e\u5024\u3067\u51e6\u7406\u3092\u7d42\u4e86\u3059\u308b\u3053\u3068\u3082\u3001\u5b9f\u88c5\u4e0a\u306e\u6839\u62e0\u306b\u306a\u308a\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\/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><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<p>\u6700\u5f8c\u306f\u3001\u5024\u3092\u5909\u3048\u308b\u76ee\u7684\u3068\u3001\u5909\u3048\u305f\u6642\u306b\u5931\u3046\u60c5\u5831\u3092\u4e00\u7dd2\u306b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\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>\u6700\u5f8c\u306b\u78ba\u8a8d\u3057\u305f\u3044\u3053\u3068<\/h2><\/div><ul class=\"wpq-checklist\"><li>\u30da\u30fc\u30b8\u7dcf\u6570\u304c\u672c\u5f53\u306b\u4e0d\u8981\u304b\u78ba\u8a8d\u3057\u305f<\/li><li>found_posts\u3068max_num_pages\u3092\u4f7f\u3063\u3066\u3044\u306a\u3044<\/li><li>\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u3068\u540c\u6642\u306b\u6709\u52b9\u5316\u3057\u3066\u3044\u306a\u3044<\/li><li>\u672c\u756a\u306b\u8fd1\u3044\u4ef6\u6570\u3067\u52b9\u679c\u3092\u6e2c\u3063\u305f<\/li><\/ul><\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u7dcf\u4ef6\u6570\u306e\u8a08\u7b97\u3092\u7701\u7565\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5207\u308a\u66ff\u3048\u308b WP_Query \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3067\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"template":"","meta":{"wpq_kicker":"\u7528\u8a9e\u96c6","wpq_lead":"`no_found_rows` \u306f\u3001\u7dcf\u4ef6\u6570\u306e\u8a08\u7b97\u3092\u7701\u7565\u3057\u3066\u30af\u30a8\u30ea\u3092\u8efd\u304f\u3057\u305f\u3044\u6642\u306b\u4f7f\u3046\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3067\u3059\u3002","wpq_hero_title_line1":"WP_Query \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc","wpq_hero_title_line2":"no_found_rows","wpq_hero_title_accent":"no_found_rows","wpq_hero_thumbnail_alt":"no_found_rows \u306e\u6982\u8981\u30a4\u30e1\u30fc\u30b8","wpq_hero_summary_mode":"","wpq_hero_summary_label":"","wpq_hero_summary_items":"","wpq_reading_time":"3\u5206\u3067\u8aad\u3081\u307e\u3059","wpq_updated_label":"2026\u5e748\u670815\u65e5\u306bWordPress\u516c\u5f0f\u8cc7\u6599\u3068\u672c\u6587\u3092\u518d\u78ba\u8a8d","wpq_official_links":"WP_Query Class|https:\/\/developer.wordpress.org\/reference\/classes\/wp_query\/","wpq_update_history":"2026\u5e745\u670826\u65e5|glossary \u7528\u306e\u521d\u56de\u30c9\u30e9\u30d5\u30c8\u3092\u4f5c\u6210\n2026\u5e748\u670815\u65e5|\u516c\u5f0f\u8cc7\u6599\u3092\u518d\u78ba\u8a8d\u3057\u3001\u7528\u8a9e\u96c6\u3068\u3057\u3066\u672c\u6587\u3068\u5224\u65ad\u6750\u6599\u3092\u518d\u69cb\u6210","wpq_pr_notice":"","footnotes":""},"wpq_glossary_group":[53],"wpq_glossary_attribute":[38,72],"class_list":["post-217","wpq_glossary","type-wpq_glossary","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary"}],"about":[{"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/types\/wpq_glossary"}],"author":[{"embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":1,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary\/217\/revisions"}],"predecessor-version":[{"id":3963,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary\/217\/revisions\/3963"}],"wp:attachment":[{"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/media?parent=217"}],"wp:term":[{"taxonomy":"wpq_glossary_group","embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary_group?post=217"},{"taxonomy":"wpq_glossary_attribute","embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary_attribute?post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}