{"id":230,"date":"2026-08-15T22:08:59","date_gmt":"2026-08-15T13:08:59","guid":{"rendered":"https:\/\/wptoolslab.com\/query-lab\/glossary\/tax-query\/"},"modified":"2026-08-29T22:46:10","modified_gmt":"2026-08-29T13:46:10","slug":"tax-query","status":"publish","type":"wpq_glossary","link":"https:\/\/wptoolslab.com\/query-lab\/glossary\/tax-query\/","title":{"rendered":"tax_query"},"content":{"rendered":"<section class=\"conclusion wpq-conclusion\"><h2 class=\"wpq-conclusion__title\">\u307e\u305a\u7d50\u8ad6<\/h2><p>`tax_query` \u306f\u3001WP_Query \u3067\u30ab\u30c6\u30b4\u30ea\u30fc\u3001\u30bf\u30b0\u3001\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306a\u3069\u306e\u5206\u985e\u6761\u4ef6\u3092\u6307\u5b9a\u3059\u308b\u5f15\u6570\u3067\u3059\u3002\u3069\u306e\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306e\u3001\u3069\u306e\u30bf\u30fc\u30e0\u306b\u5c5e\u3059\u308b\u6295\u7a3f\u3092\u53d6\u5f97\u3059\u308b\u304b\u3092\u3001\u914d\u5217\u3067\u7d30\u304b\u304f\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/section>\n<p>`tax_query` \u3092\u4f7f\u3046\u3068\u3001\u300c\u30ab\u30c6\u30b4\u30ea\u30fc\u304c\u30cb\u30e5\u30fc\u30b9\u306e\u8a18\u4e8b\u300d\u300c\u30bf\u30b0\u304c WordPress \u306e\u8a18\u4e8b\u300d\u300c\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306e\u30b8\u30e3\u30f3\u30eb\u304c\u30a4\u30d9\u30f3\u30c8\u306e\u8a18\u4e8b\u300d\u306e\u3088\u3046\u306b\u3001\u5206\u985e\u3092\u6761\u4ef6\u306b\u3057\u3066\u6295\u7a3f\u3092\u7d5e\u308a\u8fbc\u3081\u307e\u3059\u3002<\/p>\n<p>\u521d\u5fc3\u8005\u304c\u3064\u307e\u305a\u304d\u3084\u3059\u3044\u306e\u306f\u3001`tax_query` \u306e\u4e2d\u306b\u3055\u3089\u306b\u914d\u5217\u3092\u66f8\u304f\u70b9\u3067\u3059\u3002`taxonomy`\u3001`field`\u3001`terms`\u3001`operator` \u306a\u3069\u8907\u6570\u306e\u9805\u76ee\u304c\u51fa\u3066\u304f\u308b\u305f\u3081\u3001\u6700\u521d\u306f\u305d\u308c\u305e\u308c\u306e\u5f79\u5272\u3092\u5206\u3051\u3066\u898b\u308b\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002<\/p>\n<h2 id=\"what-is-tax-query\" class=\"h-underline section-heading\"><span class=\"section-heading-icon\" aria-hidden=\"true\"><svg data-wpq-icon=\"lightbulb\" 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 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5\" \/>\n  <path d=\"M9 18h6\" \/>\n  <path d=\"M10 22h4\" \/>\n<\/svg><\/span><span class=\"section-heading-text\">tax_query \u306f\u4f55\u3092\u6307\u5b9a\u3059\u308b\u5f15\u6570\u304b<\/span><\/h2>\n<p>`tax_query` \u306f\u3001\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3068\u30bf\u30fc\u30e0\u3092\u4f7f\u3063\u3066\u6295\u7a3f\u3092\u7d5e\u308a\u8fbc\u3080\u305f\u3081\u306e WP_Query \u5f15\u6570\u3067\u3059\u3002WordPress \u3067\u306f\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u3084\u30bf\u30b0\u3082\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3068\u3057\u3066\u6271\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u3068\u4e00\u7dd2\u306b\u4f7f\u308f\u308c\u308b\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3082\u3001`tax_query` \u306e\u5bfe\u8c61\u306b\u306a\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30a4\u30d9\u30f3\u30c8\u6295\u7a3f\u30bf\u30a4\u30d7\u306b\u300c\u958b\u50ac\u5730\u57df\u300d\u3084\u300c\u30a4\u30d9\u30f3\u30c8\u7a2e\u5225\u300d\u306e\u3088\u3046\u306a\u5206\u985e\u3092\u4ed8\u3051\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u306e\u5206\u985e\u3067\u4e00\u89a7\u3092\u7d5e\u308a\u8fbc\u3080\u6642\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u5927\u4e8b\u306a\u306e\u306f\u3001`taxonomy` \u306f\u5206\u985e\u306e\u7a2e\u985e\u3001`terms` \u306f\u305d\u306e\u4e2d\u306e\u5177\u4f53\u7684\u306a\u9805\u76ee\u3060\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u30ab\u30c6\u30b4\u30ea\u30fc\u3067\u7d5e\u308b\u306a\u3089 `taxonomy` \u306f `category`\u3001\u30bf\u30b0\u3067\u7d5e\u308b\u306a\u3089 `post_tag`\u3001\u72ec\u81ea\u5206\u985e\u306a\u3089\u305d\u306e\u767b\u9332\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>`field` \u306f\u3001`terms` \u306b\u5165\u308c\u305f\u5024\u3092\u3069\u3046\u89e3\u91c8\u3059\u308b\u304b\u3092\u6c7a\u3081\u307e\u3059\u3002`terms` \u306b\u30b9\u30e9\u30c3\u30b0\u3092\u5165\u308c\u308b\u306a\u3089 `field` \u306f `slug`\u3001\u30bf\u30fc\u30e0ID\u3092\u5165\u308c\u308b\u306a\u3089 `field` \u306f `term_id` \u306b\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: \u9805\u76ee \/ \u5f79\u5272 \/ \u4f8b\"><table class=\"article-table table-priority wpq-article-table\"><thead><tr><th>\u9805\u76ee<\/th><th>\u5f79\u5272<\/th><th>\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>taxonomy<\/code><\/td><td>\u3069\u306e\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u898b\u308b\u304b\u3092\u6307\u5b9a\u3059\u308b<\/td><td><code>category<\/code>\u3001<code>post_tag<\/code>\u3001<code>genre<\/code> \u306a\u3069<\/td><\/tr><tr><td><code>field<\/code><\/td><td>\u30bf\u30fc\u30e0\u3092\u4f55\u3067\u6307\u5b9a\u3059\u308b\u304b\u3092\u6c7a\u3081\u308b<\/td><td><code>term_id<\/code>\u3001<code>slug<\/code>\u3001<code>name<\/code> \u306a\u3069<\/td><\/tr><tr><td><code>terms<\/code><\/td><td>\u6761\u4ef6\u306b\u3059\u308b\u30bf\u30fc\u30e0\u3092\u6307\u5b9a\u3059\u308b<\/td><td><code>12<\/code>\u3001<code>news<\/code>\u3001<code>event<\/code> \u306a\u3069<\/td><\/tr><tr><td><code>operator<\/code><\/td><td>\u542b\u3080\u30fb\u542b\u307e\u306a\u3044\u306a\u3069\u306e\u5224\u5b9a\u65b9\u6cd5\u3092\u6307\u5b9a\u3059\u308b<\/td><td><code>IN<\/code>\u3001<code>NOT IN<\/code>\u3001<code>AND<\/code> \u306a\u3069<\/td><\/tr><tr><td><code>relation<\/code><\/td><td>\u8907\u6570\u6761\u4ef6\u306e\u95a2\u4fc2\u3092\u6307\u5b9a\u3059\u308b<\/td><td><code>AND<\/code>\u3001<code>OR<\/code><\/td><\/tr><\/tbody><\/table><\/div><\/div>\n<h2 id=\"taxonomy-field-terms\" 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\">taxonomy\u3001field\u3001terms \u306e\u8003\u3048\u65b9<\/span><\/h2>\n<p>`tax_query` \u3067\u306f\u3001`taxonomy`\u3001`field`\u3001`terms` \u306e3\u3064\u3092\u307e\u305a\u7406\u89e3\u3059\u308b\u3068\u66f8\u304d\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u306e3\u3064\u3067\u300c\u3069\u306e\u5206\u985e\u306e\u3001\u3069\u306e\u5024\u3092\u898b\u308b\u304b\u300d\u304c\u6c7a\u307e\u308a\u307e\u3059\u3002<\/p>\n<p>`taxonomy` \u306f\u5206\u985e\u306e\u540d\u524d\u3067\u3059\u3002\u30ab\u30c6\u30b4\u30ea\u30fc\u306a\u3089 `category`\u3001\u30bf\u30b0\u306a\u3089 `post_tag`\u3001\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306a\u3089\u767b\u9332\u3055\u308c\u305f\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>`field` \u306f\u3001`terms` \u306e\u5024\u3092\u30b9\u30e9\u30c3\u30b0\u3068\u3057\u3066\u6271\u3046\u306e\u304b\u3001ID\u3068\u3057\u3066\u6271\u3046\u306e\u304b\u3092\u6c7a\u3081\u307e\u3059\u3002\u4eba\u9593\u304c\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u306b\u3057\u305f\u3044\u5834\u5408\u306f `slug` \u304c\u5206\u304b\u308a\u3084\u3059\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u304c\u3001ID\u3067\u7ba1\u7406\u3057\u305f\u3044\u5834\u5408\u306f `term_id` \u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>`terms` \u306f\u914d\u5217\u3067\u66f8\u304f\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u30021\u3064\u3060\u3051\u3067\u3082\u914d\u5217\u306b\u3057\u3066\u304a\u304f\u3068\u3001\u5f8c\u304b\u3089\u8907\u6570\u6761\u4ef6\u3078\u5e83\u3052\u3084\u3059\u304f\u306a\u308a\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`tax_query` \u306f\u5206\u985e\u6761\u4ef6\u306e\u30b0\u30eb\u30fc\u30d7\u3068\u3057\u3066\u6271\u3046\u60f3\u5b9a\u3067\u3059\u3002\u521d\u5fc3\u8005\u5411\u3051\u306b\u306f\u3001\u3044\u304d\u306a\u308a\u914d\u5217\u3092\u898b\u305b\u308b\u3088\u308a\u3001\u300c\u5206\u985e\u306e\u7a2e\u985e\u300d\u300c\u6307\u5b9a\u65b9\u6cd5\u300d\u300c\u30bf\u30fc\u30e0\u300d\u300c\u542b\u3080 \/ \u542b\u307e\u306a\u3044\u300d\u300c\u6761\u4ef6\u306e\u3064\u306a\u304e\u65b9\u300d\u306b\u5206\u3051\u3066\u5165\u529b\u3067\u304d\u308b\u3068\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u753b\u9762\u4e0a\u3067\u306f\u300c\u30bf\u30af\u30bd\u30ce\u30df\u30fc: \u30ab\u30c6\u30b4\u30ea\u30fc\u300d\u300c\u6307\u5b9a\u65b9\u6cd5: \u30b9\u30e9\u30c3\u30b0\u300d\u300c\u30bf\u30fc\u30e0: news\u300d\u300c\u6761\u4ef6: \u542b\u3080\u300d\u306e\u3088\u3046\u306b\u9078\u3070\u305b\u3001\u5185\u90e8\u3067 `tax_query` \u306e\u914d\u5217\u3078\u5909\u63db\u3059\u308b\u5f62\u3067\u3059\u3002<\/p>\n<p>\u8907\u6570\u6761\u4ef6\u3092\u6271\u3046\u5834\u5408\u306f\u3001`relation` \u306e\u8aac\u660e\u304c\u91cd\u8981\u3067\u3059\u3002\u300c\u3059\u3079\u3066\u6e80\u305f\u3059\u300d\u3068\u300c\u3069\u308c\u304b\u3092\u6e80\u305f\u3059\u300d\u3092\u8a00\u8449\u3067\u9078\u3070\u305b\u3001\u305d\u308c\u3092 `AND` \/ `OR` \u306b\u5bfe\u5fdc\u3055\u305b\u308b\u3068\u5206\u304b\u308a\u3084\u3059\u304f\u306a\u308a\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>\u30ab\u30c6\u30b4\u30ea\u30fc\u3001\u30bf\u30b0\u3001\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u8907\u6570\u6761\u4ef6\u3084\u9664\u5916\u3092\u542b\u3081\u3066\u7d5e\u308a\u8fbc\u3080\u6642\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u5024\u3084\u6295\u7a3f\u65e5\u3092\u6761\u4ef6\u306b\u3059\u308b\u7528\u9014\u3078\u6d41\u7528\u305b\u305a\u3001\u5358\u7d14\u306a1\u30ab\u30c6\u30b4\u30ea\u30fc\u306a\u3089\u77ed\u7e2e\u5f15\u6570\u3082\u691c\u8a0e\u3057\u307e\u3059\u3002<\/p>\n<p>`taxonomy`\u30fb`field`\u30fb`terms`\u30fb`operator`\u30fb`relation` \u306e\u5f79\u5272\u304c\u4e00\u3064\u3067\u3082\u305a\u308c\u308b\u3068\u30010\u4ef6\u307e\u305f\u306f\u5e83\u3059\u304e\u308b\u7d50\u679c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30c6\u30b4\u30ea\u30fc\u540d\u3067\u63a2\u3059\u306e\u304b\u30bf\u30fc\u30e0ID\u3067\u63a2\u3059\u306e\u304b\u3092\u5148\u306b\u6c7a\u3081\u308b\u3068\u3001`field` \u3068 `terms` \u306e\u53d6\u308a\u9055\u3048\u3092\u9632\u3052\u307e\u3059\u3002<\/p>\n<p>\u30bf\u30fc\u30e0\u4ed8\u4e0e\u72b6\u614b\u304c\u7570\u306a\u308b\u6295\u7a3f\u3092\u7528\u610f\u3057\u3001\u6761\u4ef6\u3092\u4e00\u3064\u305a\u3064\u8ffd\u52a0\u3057\u3066\u671f\u5f85\u3059\u308b\u6295\u7a3fID\u3068\u5b9f\u969b\u306e\u6295\u7a3fID\u3092\u96c6\u5408\u3067\u6bd4\u8f03\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\/tax-query-filtering\/\"><span class=\"article-thumb wpq-related-link__thumb\"><img decoding=\"async\" alt=\"tax_query\u3068\u306f\uff1f\u30ab\u30c6\u30b4\u30ea\u30fb\u30bf\u30b0\u30fb\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3067\u7d5e\u308a\u8fbc\u3080\u65b9\u6cd5 \u306e\u30b5\u30e0\u30cd\u30a4\u30eb\" src=\"https:\/\/wptoolslab.com\/query-lab\/wp-content\/uploads\/2026\/08\/tax-query-filtering-card-1.png\" loading=\"lazy\" \/><\/span><div class=\"deep-link-copy wpq-related-link__copy\"><small>\u5b9f\u8df5\u8a18\u4e8b\u3067\u78ba\u8a8d<\/small><b>tax_query\u3067\u30ab\u30c6\u30b4\u30ea\u30fc\u30fb\u30bf\u30b0\u30fb\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u7d5e\u308a\u8fbc\u3080<\/b><p>`tax_query` \u3092\u6700\u5c0f\u6761\u4ef6\u304b\u3089\u7d44\u307f\u3001AND\u30fbOR\u3084\u9664\u5916\u3078\u5e83\u3052\u308b\u5b9f\u8df5\u4f8b\u3092\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\u8cc7\u6599\u3067\u306f\u3001WP_Query \u306e `tax_query` \u306f Taxonomy Parameters \u306e\u4e2d\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002`taxonomy`\u3001`field`\u3001`terms`\u3001`operator`\u3001`relation` \u306a\u3069\u306e\u69cb\u9020\u3092\u78ba\u8a8d\u3057\u305f\u3044\u6642\u306f\u3001WP_Query \u3068 WP_Tax_Query \u306e\u516c\u5f0f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u5408\u308f\u305b\u3066\u898b\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306e\u767b\u9332\u540d\u3084\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u3001`register_taxonomy()` \u306e\u516c\u5f0f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3082\u78ba\u8a8d\u3057\u307e\u3059\u3002`tax_query` \u306f\u767b\u9332\u6e08\u307f\u306e\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u6761\u4ef6\u306b\u4f7f\u3046\u305f\u3081\u3001\u767b\u9332\u540d\u3092\u9593\u9055\u3048\u308b\u3068\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\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 class=\"wpq-reference-item__description\">`tax_query` \u3092 WP_Query \u306e\u5f15\u6570\u3068\u3057\u3066\u3069\u3046\u66f8\u304f\u304b\u78ba\u8a8d\u3057\u305f\u3044\u6642<\/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_tax_query\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"wpq-reference-item__copy\"><strong class=\"wpq-reference-item__title\">WP_Tax_Query<\/strong><span class=\"wpq-reference-item__description\">\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u6761\u4ef6\u306e\u69cb\u9020\u3084\u6307\u5b9a\u9805\u76ee\u3092\u8a73\u3057\u304f\u78ba\u8a8d\u3057\u305f\u3044\u6642<\/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\/register_taxonomy\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"wpq-reference-item__copy\"><strong class=\"wpq-reference-item__title\">register_taxonomy()<\/strong><span class=\"wpq-reference-item__description\">\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306e\u767b\u9332\u540d\u3084\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u305f\u3044\u6642<\/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<p>`tax_query` \u306f\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u3001\u30bf\u30b0\u3001\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306a\u3069\u306e\u5206\u985e\u3067\u6295\u7a3f\u3092\u7d5e\u308a\u8fbc\u3080\u305f\u3081\u306e\u5f15\u6570\u3067\u3059\u3002\u5206\u985e\u6761\u4ef6\u3092\u6271\u3046\u6642\u306f\u3001`taxonomy`\u3001`field`\u3001`terms`\u3001`operator`\u3001`relation` \u306e\u5f79\u5272\u3092\u5206\u3051\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u8ff7\u3063\u305f\u6642\u306f\u3001\u307e\u305a1\u3064\u306e\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u30681\u3064\u306e\u30bf\u30fc\u30e0\u3060\u3051\u3067\u6700\u5c0f\u69cb\u6210\u3092\u4f5c\u308a\u307e\u3059\u3002\u53d6\u5f97\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001\u8907\u6570\u30bf\u30fc\u30e0\u3001\u8907\u6570\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3001`AND` \/ `OR` \u6761\u4ef6\u3078\u5e83\u3052\u308b\u3068\u5b89\u5168\u3067\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>tax_query \u306e\u6700\u7d42\u30c1\u30a7\u30c3\u30af<\/h2><\/div><ul class=\"wpq-checklist\"><li>\u5206\u985e\u3067\u7d5e\u308a\u8fbc\u3080\u6761\u4ef6\u306a\u306e\u3067 <code>tax_query<\/code> \u3092\u4f7f\u3046\u5834\u9762\u3060\u3068\u5224\u65ad\u3057\u305f<\/li><li><code>taxonomy<\/code> \u306b\u5206\u985e\u540d\u3001<code>terms<\/code> \u306b\u30bf\u30fc\u30e0\u3092\u5165\u308c\u3066\u3044\u308b<\/li><li><code>field<\/code> \u3068 <code>terms<\/code> \u306e\u6307\u5b9a\u65b9\u6cd5\u304c\u4e00\u81f4\u3057\u3066\u3044\u308b<\/li><li>\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3067\u306f\u767b\u9332\u540d\u3092\u78ba\u8a8d\u3057\u305f<\/li><li>\u8907\u6570\u6761\u4ef6\u3067\u306f <code>relation<\/code> \u306e AND \/ OR \u3092\u78ba\u8a8d\u3057\u305f<\/li><li>\u307e\u305a\u306f1\u30bf\u30fc\u30e0\u3060\u3051\u306e\u6700\u5c0f\u69cb\u6210\u3067\u53d6\u5f97\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3057\u305f<\/li><\/ul><\/section>\n","protected":false},"excerpt":{"rendered":"<p>tax_query \u306f\u3001WP_Query \u3067\u30ab\u30c6\u30b4\u30ea\u30fc\u3001\u30bf\u30b0\u3001\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306a\u3069\u306e\u5206\u985e\u6761\u4ef6\u3092\u6307\u5b9a\u3059\u308b\u5f15\u6570\u3067\u3059\u3002\u57fa\u672c\u69cb\u9020\u3068 taxonomy\u3001field\u3001terms\u3001operator \u306e\u4f7f\u3044\u5206\u3051\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":3705,"template":"","meta":{"wpq_kicker":"\u7528\u8a9e\u96c6","wpq_lead":"tax_query \u306f\u3001WP_Query \u3067\u300c\u3069\u306e\u5206\u985e\u306b\u5c5e\u3059\u308b\u6295\u7a3f\u3092\u53d6\u5f97\u3059\u308b\u304b\u300d\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306e\u5f15\u6570\u3067\u3059\u3002\u30ab\u30c6\u30b4\u30ea\u30fc\u3001\u30bf\u30b0\u3001\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306a\u3069\u3001\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306b\u7d10\u3065\u304f\u6761\u4ef6\u3067\u6295\u7a3f\u3092\u7d5e\u308a\u8fbc\u307f\u305f\u3044\u6642\u306b\u4f7f\u3044\u307e\u3059\u3002","wpq_hero_title_line1":"WP_Query \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc","wpq_hero_title_line2":"tax_query","wpq_hero_title_accent":"tax_query","wpq_hero_thumbnail_alt":"tax_query \u306e\u6982\u8981\u30a4\u30e1\u30fc\u30b8","wpq_hero_summary_mode":"","wpq_hero_summary_label":"","wpq_hero_summary_items":"","wpq_reading_time":"6\u5206\u3067\u8aad\u3081\u307e\u3059","wpq_updated_label":"2026\u5e745\u6708\u6642\u70b9\u3067\u516c\u5f0f\u8cc7\u6599\u3092\u518d\u78ba\u8a8d","wpq_official_links":"WP_Query Class|https:\/\/developer.wordpress.org\/reference\/classes\/wp_query\/\nWP_Tax_Query|https:\/\/developer.wordpress.org\/reference\/classes\/wp_tax_query\/\nregister_taxonomy()|https:\/\/developer.wordpress.org\/reference\/functions\/register_taxonomy\/","wpq_update_history":"2026\u5e745\u670831\u65e5|\u5185\u5bb9\u3092\u5897\u88dc\u3057\u3001v3 \u57fa\u6e96\u306e glossary \u69cb\u6210\u306b\u8abf\u6574\n2026\u5e745\u670826\u65e5|glossary \u7528\u306e\u521d\u56de\u30c9\u30e9\u30d5\u30c8\u3092\u4f5c\u6210","wpq_pr_notice":"","footnotes":""},"wpq_glossary_group":[53],"wpq_glossary_attribute":[38,68],"class_list":["post-230","wpq_glossary","type-wpq_glossary","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary\/230","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\/230\/revisions"}],"predecessor-version":[{"id":3985,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary\/230\/revisions\/3985"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/media\/3705"}],"wp:attachment":[{"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/media?parent=230"}],"wp:term":[{"taxonomy":"wpq_glossary_group","embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary_group?post=230"},{"taxonomy":"wpq_glossary_attribute","embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary_attribute?post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}