{"id":423,"date":"2026-08-15T22:09:00","date_gmt":"2026-08-15T13:09:00","guid":{"rendered":"https:\/\/wptoolslab.com\/query-lab\/?post_type=wpq_glossary&amp;p=423"},"modified":"2026-08-29T22:46:11","modified_gmt":"2026-08-29T13:46:11","slug":"taxonomy","status":"publish","type":"wpq_glossary","link":"https:\/\/wptoolslab.com\/query-lab\/glossary\/taxonomy\/","title":{"rendered":"taxonomy"},"content":{"rendered":"<section class=\"conclusion wpq-conclusion\"><h2 class=\"wpq-conclusion__title\">\u307e\u305a\u7d50\u8ad6<\/h2><p>taxonomy \u306f\u3001WordPress \u3067\u6295\u7a3f\u3084 custom post type \u3092\u5206\u985e\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002\u30ab\u30c6\u30b4\u30ea\u30fc\u3084\u30bf\u30b0\u3082 taxonomy \u306e\u4e00\u7a2e\u3067\u3001\u72ec\u81ea\u306e\u5206\u985e\u3092\u4f5c\u308b\u5834\u5408\u306f `register_taxonomy()` \u3092\u4f7f\u3044\u3001WP_Query \u3067\u7d5e\u308a\u8fbc\u3080\u5834\u5408\u306f `tax_query` \u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<\/section>\n<p>taxonomy \u306f\u3001\u6295\u7a3f\u3092\u300c\u7a2e\u985e\u300d\u3067\u306f\u306a\u304f\u300c\u5206\u985e\u300d\u3067\u6574\u7406\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002\u901a\u5e38\u6295\u7a3f\u3092\u30ab\u30c6\u30b4\u30ea\u30fc\u3084\u30bf\u30b0\u3067\u5206\u985e\u3059\u308b\u306e\u3068\u540c\u3058\u3088\u3046\u306b\u3001custom post type \u306b\u30b8\u30e3\u30f3\u30eb\u3001\u5730\u57df\u3001\u5546\u54c1\u30ab\u30c6\u30b4\u30ea\u30fc\u306a\u3069\u306e\u5206\u985e\u3092\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u521d\u5fc3\u8005\u304c\u6700\u521d\u306b\u62bc\u3055\u3048\u308b\u3079\u304d\u306a\u306e\u306f\u3001taxonomy \u3068 custom post type \u306e\u9055\u3044\u3067\u3059\u3002custom post type \u306f\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u7a2e\u985e\u3092\u5206\u3051\u308b\u4ed5\u7d44\u307f\u3067\u3001taxonomy \u306f\u305d\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5206\u985e\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<h2 id=\"what-is-taxonomy\" 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\">taxonomy \u306f\u4f55\u3092\u6307\u3059\u8a00\u8449\u304b<\/span><\/h2>\n<p>taxonomy \u306f\u3001WordPress \u306e\u6295\u7a3f\u30c7\u30fc\u30bf\u3092\u5206\u985e\u3059\u308b\u305f\u3081\u306e\u67a0\u7d44\u307f\u3067\u3059\u3002\u6a19\u6e96\u3067\u306f\u30ab\u30c6\u30b4\u30ea\u30fc\u3068\u30bf\u30b0\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30ab\u30c6\u30b4\u30ea\u30fc\u306f\u968e\u5c64\u3092\u6301\u3066\u308b\u5206\u985e\u3001\u30bf\u30b0\u306f\u968e\u5c64\u3092\u6301\u305f\u306a\u3044\u5206\u985e\u3068\u3057\u3066\u4f7f\u308f\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u30b5\u30a4\u30c8\u72ec\u81ea\u306e\u5206\u985e\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u767b\u9332\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30a4\u30d9\u30f3\u30c8\u6295\u7a3f\u30bf\u30a4\u30d7\u306b\u300c\u5730\u57df\u300d\u3001\u5546\u54c1\u6295\u7a3f\u30bf\u30a4\u30d7\u306b\u300c\u5546\u54c1\u30ab\u30c6\u30b4\u30ea\u30fc\u300d\u3001\u5236\u4f5c\u5b9f\u7e3e\u306b\u300c\u696d\u7a2e\u300d\u306a\u3069\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u5927\u4e8b\u306a\u306e\u306f\u3001taxonomy \u306f\u5206\u985e\u306e\u300c\u5165\u308c\u7269\u300d\u3067\u3001term \u306f\u305d\u306e\u4e2d\u306e\u300c\u5177\u4f53\u7684\u306a\u9805\u76ee\u300d\u3060\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u305f\u3068\u3048\u3070 taxonomy \u304c\u300c\u30b8\u30e3\u30f3\u30eb\u300d\u306a\u3089\u3001term \u306f\u300c\u30bb\u30df\u30ca\u30fc\u300d\u300c\u5c55\u793a\u4f1a\u300d\u300c\u30ef\u30fc\u30af\u30b7\u30e7\u30c3\u30d7\u300d\u306e\u3088\u3046\u306a\u5024\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>WP_Query \u3067 taxonomy \u6761\u4ef6\u3092\u66f8\u304f\u6642\u3082\u3001\u3053\u306e\u9055\u3044\u304c\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002`taxonomy` \u306b\u306f\u5206\u985e\u306e\u7a2e\u985e\u3001`terms` \u306b\u306f\u5177\u4f53\u7684\u306a\u30bf\u30fc\u30e0\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"wpq-compare-grid\" role=\"group\" aria-label=\"\u898b\u76f4\u3057\u524d\u3068\u6539\u5584\u5f8c\u306e\u6bd4\u8f03\"><section class=\"wpq-compare-card wpq-compare-card--ng\"><span class=\"wpq-compare-card__status wpq-compare-card__status--ng\"><span class=\"wpq-compare-card__mark\" aria-hidden=\"true\">NG<\/span><b>\u898b\u76f4\u3057\u524d<\/b><\/span><div class=\"wpq-compare-card__content\"><p class=\"wpq-compare-card__title\">\u6df7\u540c\u3057\u3084\u3059\u3044\u8003\u3048\u65b9<\/p><ul class=\"wpq-compare-list\"><li class=\"wpq-compare-list__item wpq-compare-list__item--ng\">\u5206\u985e\u3092\u5897\u3084\u3057\u305f\u3044\u3060\u3051\u3067 custom post type \u3092\u4f5c\u308b<\/li><li class=\"wpq-compare-list__item wpq-compare-list__item--ng\">\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u7a2e\u985e\u3092 taxonomy \u3060\u3051\u3067\u7121\u7406\u306b\u8868\u73fe\u3059\u308b<\/li><li class=\"wpq-compare-list__item wpq-compare-list__item--ng\">\u958b\u50ac\u65e5\u3084\u4fa1\u683c\u306e\u3088\u3046\u306a\u5024\u3092 taxonomy \u306b\u3059\u308b<\/li><\/ul><\/div><\/section><section class=\"wpq-compare-card wpq-compare-card--ok\"><span class=\"wpq-compare-card__status wpq-compare-card__status--ok\"><span class=\"wpq-compare-card__mark\" aria-hidden=\"true\">OK<\/span><b>\u6539\u5584\u5f8c<\/b><\/span><div class=\"wpq-compare-card__content\"><p class=\"wpq-compare-card__title\">\u6574\u7406\u3057\u305f\u8003\u3048\u65b9<\/p><ul class=\"wpq-compare-list\"><li class=\"wpq-compare-list__item wpq-compare-list__item--ok\">\u5206\u985e\u306a\u3089 taxonomy \u3092\u691c\u8a0e\u3059\u308b<\/li><li class=\"wpq-compare-list__item wpq-compare-list__item--ok\">\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u7a2e\u985e\u306a\u3089 custom post type \u3092\u691c\u8a0e\u3059\u308b<\/li><li class=\"wpq-compare-list__item wpq-compare-list__item--ok\">\u5024\u3068\u3057\u3066\u6bd4\u8f03\u3057\u305f\u3044\u60c5\u5831\u306f custom field \u3092\u691c\u8a0e\u3059\u308b<\/li><\/ul><\/div><\/section><\/div>\n<h2 id=\"taxonomy-vs-custom-post-type\" 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\">custom post type \u3068\u306e\u9055\u3044<\/span><\/h2>\n<p>custom post type \u306f\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u7a2e\u985e\u3092\u5206\u3051\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002taxonomy \u306f\u3001\u305d\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5206\u985e\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002\u3053\u306e2\u3064\u3092\u6df7\u540c\u3059\u308b\u3068\u3001\u30b5\u30a4\u30c8\u8a2d\u8a08\u304c\u5206\u304b\u308a\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u300c\u30a4\u30d9\u30f3\u30c8\u300d\u306f custom post type \u3068\u3057\u3066\u4f5c\u308a\u3001\u305d\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u5206\u985e\u3059\u308b\u305f\u3081\u306b\u300c\u30b8\u30e3\u30f3\u30eb\u300d\u3084\u300c\u5730\u57df\u300d\u3068\u3044\u3046 taxonomy \u3092\u8ffd\u52a0\u3059\u308b\u3001\u3068\u3044\u3046\u6574\u7406\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5224\u65ad\u306e\u76ee\u5b89\u306f\u3001\u300c\u5225\u306e\u7a2e\u985e\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u304b\u300d\u300c\u540c\u3058\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5206\u985e\u3057\u305f\u3044\u3060\u3051\u304b\u300d\u3067\u3059\u3002\u5225\u306e\u7a2e\u985e\u306a\u3089 custom post type\u3001\u5206\u985e\u3057\u305f\u3044\u3060\u3051\u306a\u3089 taxonomy \u304c\u5019\u88dc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u30d6\u30ed\u30b0\u8a18\u4e8b\u3092\u300c\u30cb\u30e5\u30fc\u30b9\u300d\u300c\u30b3\u30e9\u30e0\u300d\u306b\u5206\u3051\u305f\u3044\u3060\u3051\u306a\u3089\u30ab\u30c6\u30b4\u30ea\u30fc\u3067\u8db3\u308a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u4e00\u65b9\u3001\u30a4\u30d9\u30f3\u30c8\u60c5\u5831\u3084\u5546\u54c1\u60c5\u5831\u306e\u3088\u3046\u306b\u7ba1\u7406\u9805\u76ee\u3084\u8868\u793a\u5f62\u5f0f\u304c\u5927\u304d\u304f\u9055\u3046\u306a\u3089 custom post type \u3092\u691c\u8a0e\u3057\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\u3001taxonomy \u306f\u5206\u985e\u6761\u4ef6\u306e\u9078\u629e\u80a2\u3068\u3057\u3066\u6271\u3046\u60f3\u5b9a\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u304c\u300c\u30ab\u30c6\u30b4\u30ea\u30fc\u300d\u300c\u30bf\u30b0\u300d\u300c\u30b8\u30e3\u30f3\u30eb\u300d\u306a\u3069\u3092\u9078\u3076\u3068\u3001\u5185\u90e8\u3067\u306f `tax_query` \u306e `taxonomy` \u306b\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n<p>\u521d\u5fc3\u8005\u5411\u3051\u306b\u306f\u3001taxonomy \u540d\u3068\u7ba1\u7406\u753b\u9762\u30e9\u30d9\u30eb\u3092\u5206\u3051\u3066\u898b\u305b\u308b\u3068\u5206\u304b\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u300c\u30b8\u30e3\u30f3\u30eb\uff08genre\uff09\u300d\u306e\u3088\u3046\u306b\u8868\u793a\u3059\u308b\u3068\u3001\u30b3\u30fc\u30c9\u306b\u5165\u308b\u5024\u3092\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>custom post type \u3068 taxonomy \u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u5834\u5408\u306f\u3001\u307e\u305a\u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u9078\u3073\u3001\u305d\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u306b\u7d10\u3065\u304f taxonomy \u3092\u9078\u3076\u6d41\u308c\u306b\u3059\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u8aa4\u3063\u305f\u5206\u985e\u3092\u9078\u3073\u306b\u304f\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>\u6295\u7a3f\u3092\u5171\u6709\u3067\u304d\u308b\u5206\u985e\u3067\u6574\u7406\u3059\u308b\u4ed5\u7d44\u307f\u3084\u3001`tax_query` \u3067\u5bfe\u8c61\u306e\u5206\u985e\u30ad\u30fc\u3092\u6307\u5b9a\u3059\u308b\u6642\u306b\u4f7f\u3046\u6982\u5ff5\u3067\u3059\u3002<\/p>\n<p>\u6295\u7a3f\u30bf\u30a4\u30d7\u305d\u306e\u3082\u306e\u3084\u3001\u6295\u7a3f\u3054\u3068\u306e\u81ea\u7531\u306a\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u540c\u3058\u4ed5\u7d44\u307f\u3068\u3057\u3066\u6271\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u7ba1\u7406\u753b\u9762\u306e\u8868\u793a\u540d\u3067\u306f\u306a\u304f\u767b\u9332\u30ad\u30fc\u3092\u4f7f\u3044\u3001\u305d\u306e\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u304c\u5bfe\u8c61\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u3078\u7d50\u3073\u4ed8\u3044\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u6295\u7a3f\u30bf\u30a4\u30d7\u304c\u7bb1\u3001\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u304c\u5206\u985e\u8ef8\u3068\u3044\u3046\u9055\u3044\u3092\u62bc\u3055\u3048\u308b\u3068\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u8a2d\u8a08\u306e\u5f79\u5272\u304c\u6df7\u3056\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u767b\u9332\u6e08\u307f\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3001`object_type`\u3001\u5bfe\u8c61\u30bf\u30fc\u30e0\u3001\u6295\u7a3f\u3078\u306e\u4ed8\u4e0e\u72b6\u614b\u3092\u51fa\u529b\u3057\u3001\u6700\u5c0f\u306e `tax_query` \u3067\u53d6\u5f97\u3067\u304d\u305f\u6295\u7a3fID\u3068\u7167\u5408\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>`taxonomy`\u30fb`field`\u30fb`terms` \u3092\u7d44\u307f\u5408\u308f\u305b\u3001\u5b9f\u969b\u306e\u5206\u985e\u3067\u7d5e\u308b\u65b9\u6cd5\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\u3001`register_taxonomy()` \u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067 taxonomy \u306e\u767b\u9332\u65b9\u6cd5\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002WP_Query \u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067\u306f\u3001`tax_query` \u3068\u3057\u3066 taxonomy \u6761\u4ef6\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001WP_Tax_Query \u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067\u306f\u3001`taxonomy`\u3001`field`\u3001`terms`\u3001`operator`\u3001`relation` \u306a\u3069\u3001taxonomy \u6761\u4ef6\u306e\u5185\u90e8\u69cb\u9020\u3092\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\/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\">custom taxonomy \u306e\u767b\u9332\u5f15\u6570\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><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\">WP_Query \u3067 `tax_query` \u3092\u4f7f\u3046\u65b9\u6cd5\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><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\">taxonomy \u6761\u4ef6\u306e\u8a73\u7d30\u69cb\u9020\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>taxonomy \u306f\u3001WordPress \u3067\u6295\u7a3f\u3084 custom post type \u3092\u5206\u985e\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002\u30ab\u30c6\u30b4\u30ea\u30fc\u3084\u30bf\u30b0\u3082 taxonomy \u306e\u4e00\u7a2e\u3067\u3001\u72ec\u81ea\u5206\u985e\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f custom taxonomy \u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<p>\u8ff7\u3063\u305f\u6642\u306f\u3001taxonomy\u3001term\u3001custom post type\u3001custom field \u306e\u5f79\u5272\u3092\u5206\u3051\u307e\u3059\u3002\u5206\u985e\u306e\u7a2e\u985e\u304c taxonomy\u3001\u5177\u4f53\u7684\u306a\u5206\u985e\u9805\u76ee\u304c term\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u7a2e\u985e\u304c custom post type\u3001\u8ffd\u52a0\u60c5\u5831\u304c custom field \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>taxonomy \u306e\u6700\u7d42\u30c1\u30a7\u30c3\u30af<\/h2><\/div><ul class=\"wpq-checklist\"><li>taxonomy \u306f\u6295\u7a3f\u3092\u5206\u985e\u3059\u308b\u4ed5\u7d44\u307f\u3060\u3068\u7406\u89e3\u3057\u3066\u3044\u308b<\/li><li>category \u3068 post_tag \u3082 taxonomy \u306e\u4e00\u7a2e\u3060\u3068\u78ba\u8a8d\u3057\u305f<\/li><li>taxonomy \u3068 term \u306e\u9055\u3044\u3092\u78ba\u8a8d\u3057\u305f<\/li><li>custom post type\u3001taxonomy\u3001custom field \u306e\u5f79\u5272\u3092\u5206\u3051\u305f<\/li><li>\u767b\u9332\u306b\u306f <code>register_taxonomy()<\/code> \u3092\u4f7f\u3046\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f<\/li><li>WP_Query \u3067\u306f <code>tax_query<\/code> \u306b <code>taxonomy<\/code>\u3001<code>field<\/code>\u3001<code>terms<\/code> \u3092\u6307\u5b9a\u3057\u305f<\/li><\/ul><\/section>\n","protected":false},"excerpt":{"rendered":"<p>taxonomy \u306f\u3001WordPress \u3067\u6295\u7a3f\u3084 custom post type \u3092\u5206\u985e\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002\u30ab\u30c6\u30b4\u30ea\u30fc\u3001\u30bf\u30b0\u3001\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u304c\u3042\u308a\u3001WP_Query \u3067\u306f tax_query \u3067\u6761\u4ef6\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":3702,"template":"","meta":{"wpq_kicker":"\u7528\u8a9e\u96c6","wpq_lead":"taxonomy \u306f\u3001WordPress \u3067\u6295\u7a3f\u3092\u5206\u985e\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002\u6a19\u6e96\u3067\u306f\u30ab\u30c6\u30b4\u30ea\u30fc\u3084\u30bf\u30b0\u304c\u3042\u308a\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30b8\u30e3\u30f3\u30eb\u3001\u5730\u57df\u3001\u5546\u54c1\u30ab\u30c6\u30b4\u30ea\u30fc\u306a\u3069\u306e\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002WP_Query \u3067 taxonomy \u6761\u4ef6\u3092\u6307\u5b9a\u3059\u308b\u6642\u306f tax_query \u3092\u4f7f\u3044\u307e\u3059\u3002","wpq_hero_title_line1":"WP_Query \u7528\u8a9e","wpq_hero_title_line2":"taxonomy","wpq_hero_title_accent":"taxonomy","wpq_hero_thumbnail_alt":"taxonomy \u306e\u6982\u8981\u30a4\u30e1\u30fc\u30b8","wpq_hero_summary_mode":"","wpq_hero_summary_label":"","wpq_hero_summary_items":"","wpq_reading_time":"","wpq_updated_label":"","wpq_official_links":"register_taxonomy()|https:\/\/developer.wordpress.org\/reference\/functions\/register_taxonomy\/\nWP_Query Class|https:\/\/developer.wordpress.org\/reference\/classes\/wp_query\/\nWP_Tax_Query|https:\/\/developer.wordpress.org\/reference\/classes\/wp_tax_query\/","wpq_update_history":"","wpq_pr_notice":"","footnotes":""},"wpq_glossary_group":[62],"wpq_glossary_attribute":[38,68],"class_list":["post-423","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\/423","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\/423\/revisions"}],"predecessor-version":[{"id":3986,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary\/423\/revisions\/3986"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/media\/3702"}],"wp:attachment":[{"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/media?parent=423"}],"wp:term":[{"taxonomy":"wpq_glossary_group","embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary_group?post=423"},{"taxonomy":"wpq_glossary_attribute","embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary_attribute?post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}