{"id":432,"date":"2026-08-15T22:08:26","date_gmt":"2026-08-15T13:08:26","guid":{"rendered":"https:\/\/wptoolslab.com\/query-lab\/?post_type=wpq_glossary&amp;p=432"},"modified":"2026-08-29T22:52:39","modified_gmt":"2026-08-29T13:52:39","slug":"custom-post-type","status":"publish","type":"wpq_glossary","link":"https:\/\/wptoolslab.com\/query-lab\/glossary\/custom-post-type\/","title":{"rendered":"custom post type"},"content":{"rendered":"<section class=\"conclusion wpq-conclusion\"><h2 class=\"wpq-conclusion__title\">\u307e\u305a\u7d50\u8ad6<\/h2><p>custom post type \u306f\u3001WordPress \u306b\u901a\u5e38\u6295\u7a3f\u3084\u56fa\u5b9a\u30da\u30fc\u30b8\u3068\u306f\u5225\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u8ffd\u52a0\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002\u304a\u77e5\u3089\u305b\u3001\u5546\u54c1\u3001\u30a4\u30d9\u30f3\u30c8\u3001\u4e8b\u4f8b\u306a\u3069\u3092\u5206\u3051\u3066\u7ba1\u7406\u3057\u3001WP_Query \u3067\u306f `post_type` \u306b\u305d\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u540d\u3092\u6307\u5b9a\u3057\u3066\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<\/section>\n<p>WordPress \u306b\u306f\u3001\u6a19\u6e96\u3067\u6295\u7a3f\u3084\u56fa\u5b9a\u30da\u30fc\u30b8\u304c\u3042\u308a\u307e\u3059\u3002custom post type \u306f\u3001\u305d\u308c\u3068\u306f\u5225\u306b\u300c\u30a4\u30d9\u30f3\u30c8\u300d\u300c\u5546\u54c1\u300d\u300c\u5236\u4f5c\u5b9f\u7e3e\u300d\u300c\u6c42\u4eba\u300d\u306a\u3069\u3001\u30b5\u30a4\u30c8\u56fa\u6709\u306e\u60c5\u5831\u3092\u5c02\u7528\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u3068\u3057\u3066\u7ba1\u7406\u3057\u305f\u3044\u6642\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u521d\u5fc3\u8005\u304c\u6700\u521d\u306b\u62bc\u3055\u3048\u308b\u3079\u304d\u306a\u306e\u306f\u3001custom post type \u306f\u30ab\u30c6\u30b4\u30ea\u30fc\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u70b9\u3067\u3059\u3002\u30ab\u30c6\u30b4\u30ea\u30fc\u306f\u6295\u7a3f\u3092\u5206\u985e\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002custom post type \u306f\u3001\u6295\u7a3f\u305d\u306e\u3082\u306e\u306e\u7a2e\u985e\u3092\u5206\u3051\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<h2 id=\"what-is-custom-post-type\" 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\">custom post type \u306f\u4f55\u3092\u6307\u3059\u8a00\u8449\u304b<\/span><\/h2>\n<p>custom post type \u306f\u3001WordPress \u306b\u8ffd\u52a0\u3067\u304d\u308b\u72ec\u81ea\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u3067\u3059\u3002\u901a\u5e38\u6295\u7a3f\u306e `post` \u3084\u56fa\u5b9a\u30da\u30fc\u30b8\u306e `page` \u3068\u540c\u3058\u3088\u3046\u306b\u3001WordPress \u306e\u6295\u7a3f\u30c7\u30fc\u30bf\u3068\u3057\u3066\u6271\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u30d6\u30ed\u30b0\u8a18\u4e8b\u306f\u901a\u5e38\u6295\u7a3f\u3001\u30a4\u30d9\u30f3\u30c8\u60c5\u5831\u306f `event`\u3001\u5546\u54c1\u60c5\u5831\u306f `product`\u3001\u5236\u4f5c\u5b9f\u7e3e\u306f `work` \u306e\u3088\u3046\u306b\u5206\u3051\u308b\u3068\u3001\u7ba1\u7406\u753b\u9762\u3067\u3082\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u3082\u6271\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>custom post type \u3092\u4f7f\u3046\u3068\u3001\u60c5\u5831\u306e\u7a2e\u985e\u3054\u3068\u306b\u7ba1\u7406\u753b\u9762\u3084URL\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3001\u4e00\u89a7\u8868\u793a\u3092\u5206\u3051\u3089\u308c\u307e\u3059\u3002\u901a\u5e38\u6295\u7a3f\u306b\u3059\u3079\u3066\u3092\u8a70\u3081\u8fbc\u307e\u305a\u3001\u30b5\u30a4\u30c8\u69cb\u9020\u3078\u5f79\u5272\u3092\u6301\u305f\u305b\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3067\u3001\u4f55\u3067\u3082 custom post type \u306b\u3059\u308c\u3070\u3088\u3044\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5358\u306a\u308b\u5206\u985e\u3067\u8db3\u308a\u308b\u3082\u306e\u306f taxonomy\u3001\u5024\u306e\u8ffd\u52a0\u3067\u8db3\u308a\u308b\u3082\u306e\u306f custom field \u3067\u7ba1\u7406\u3059\u308b\u307b\u3046\u304c\u81ea\u7136\u306a\u5834\u5408\u3082\u3042\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: \u7a2e\u985e \/ \u5f79\u5272 \/ \u4f8b\"><table class=\"article-table table-priority wpq-article-table\"><thead><tr><th>\u7a2e\u985e<\/th><th>\u5f79\u5272<\/th><th>\u4f8b<\/th><\/tr><\/thead><tbody><tr><td>\u901a\u5e38\u6295\u7a3f<\/td><td>\u30d6\u30ed\u30b0\u8a18\u4e8b\u3084\u30cb\u30e5\u30fc\u30b9\u8a18\u4e8b\u3092\u6271\u3046\u6a19\u6e96\u306e\u6295\u7a3f\u30bf\u30a4\u30d7<\/td><td><code>post<\/code><\/td><\/tr><tr><td>\u56fa\u5b9a\u30da\u30fc\u30b8<\/td><td>\u4f1a\u793e\u6982\u8981\u3084\u304a\u554f\u3044\u5408\u308f\u305b\u306a\u3069\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u6271\u3046<\/td><td><code>page<\/code><\/td><\/tr><tr><td>custom post type<\/td><td>\u30b5\u30a4\u30c8\u56fa\u6709\u306e\u60c5\u5831\u3092\u72ec\u81ea\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u3068\u3057\u3066\u6271\u3046<\/td><td><code>event<\/code>\u3001<code>product<\/code>\u3001<code>work<\/code> \u306a\u3069<\/td><\/tr><tr><td>taxonomy<\/td><td>\u6295\u7a3f\u3084 custom post type \u3092\u5206\u985e\u3059\u308b<\/td><td>\u30ab\u30c6\u30b4\u30ea\u30fc\u3001\u30bf\u30b0\u3001\u30b8\u30e3\u30f3\u30eb\u306a\u3069<\/td><\/tr><\/tbody><\/table><\/div><\/div>\n<h2 id=\"taxonomy-and-custom-field\" 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 \u3084 custom field \u3068\u306e\u9055\u3044<\/span><\/h2>\n<p>custom post type \u3068\u6df7\u540c\u3057\u3084\u3059\u3044\u306e\u304c taxonomy \u3068 custom field \u3067\u3059\u3002custom post type \u306f\u6295\u7a3f\u306e\u7a2e\u985e\u3001taxonomy \u306f\u5206\u985e\u3001custom field \u306f\u8ffd\u52a0\u60c5\u5831\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u30a4\u30d9\u30f3\u30c8\u60c5\u5831\u3092 `event` \u3068\u3044\u3046 custom post type \u306b\u3057\u3001\u30b8\u30e3\u30f3\u30eb\u306f taxonomy\u3001\u958b\u50ac\u65e5\u3084\u4f1a\u5834\u306f custom field \u306b\u3057\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30f3\u30c4\u3001\u5206\u985e\u3001\u8ffd\u52a0\u9805\u76ee\u3092\u5225\u306e\u5f79\u5272\u3068\u3057\u3066\u6301\u305f\u305b\u308b\u4f8b\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e3\u3064\u3092\u6df7\u540c\u3059\u308b\u3068\u3001\u30b5\u30a4\u30c8\u69cb\u9020\u304c\u5206\u304b\u308a\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002\u5546\u54c1\u3092\u30ab\u30c6\u30b4\u30ea\u30fc\u3067\u7121\u7406\u306b\u5206\u3051\u308b\u3088\u308a\u3001\u5546\u54c1\u3092 custom post type \u306b\u3057\u3001\u5546\u54c1\u30ab\u30c6\u30b4\u30ea\u30fc\u3092 taxonomy \u306b\u3059\u308b\u307b\u3046\u304c\u81ea\u7136\u306a\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3067\u3001\u30d6\u30ed\u30b0\u8a18\u4e8b\u306e\u4e2d\u3067\u300c\u30cb\u30e5\u30fc\u30b9\u300d\u300c\u30b3\u30e9\u30e0\u300d\u300c\u304a\u77e5\u3089\u305b\u300d\u3092\u5206\u3051\u305f\u3044\u3060\u3051\u306a\u3089\u3001\u901a\u5e38\u6295\u7a3f\u306e\u30ab\u30c6\u30b4\u30ea\u30fc\u3067\u8db3\u308a\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u7ba1\u7406\u3084\u8868\u793a\u3092\u3069\u3053\u307e\u3067\u5206\u3051\u305f\u3044\u304b\u3067\u5224\u65ad\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\u3001custom post type \u306f `post_type` \u306e\u9078\u629e\u80a2\u3068\u3057\u3066\u6271\u3046\u60f3\u5b9a\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u304c\u300c\u30a4\u30d9\u30f3\u30c8\u300d\u3084\u300c\u5546\u54c1\u300d\u3092\u9078\u3076\u3068\u3001\u5185\u90e8\u3067\u306f `post_type =&gt; &#8216;event&#8217;` \u3084 `post_type =&gt; &#8216;product&#8217;` \u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>\u7ba1\u7406\u753b\u9762\u30e9\u30d9\u30eb\u3068\u30b3\u30fc\u30c9\u4e0a\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u540d\u306f\u3001\u300c\u30a4\u30d9\u30f3\u30c8\uff08event\uff09\u300d\u306e\u3088\u3046\u306b\u4e26\u3079\u3066\u8868\u793a\u3057\u307e\u3059\u3002\u753b\u9762\u4e0a\u306e\u540d\u79f0\u3068 `post_type` \u306b\u5165\u308b\u5024\u3092\u53d6\u308a\u9055\u3048\u306a\u3044\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>custom post type \u3068 taxonomy\u3001custom field \u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002Builder \u3067\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 \u3084 custom field \u3092\u9078\u3076\u6d41\u308c\u306b\u3059\u308b\u3068\u3001\u6761\u4ef6\u3092\u7d44\u307f\u7acb\u3066\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>\u5546\u54c1\u3001\u4e8b\u4f8b\u3001\u30a4\u30d9\u30f3\u30c8\u306a\u3069\u3001\u901a\u5e38\u6295\u7a3f\u3068\u7570\u306a\u308b\u69cb\u9020\u3084\u7ba1\u7406\u76ee\u7684\u3092\u6301\u3064\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8aac\u660e\u3059\u308b\u6642\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u898b\u305f\u76ee\u3084\u30ab\u30c6\u30b4\u30ea\u30fc\u3060\u3051\u304c\u9055\u3046\u8a18\u4e8b\u3092\u5206\u3051\u308b\u305f\u3081\u306b\u3001\u7406\u7531\u306a\u304f\u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u5897\u3084\u3059\u306e\u306f\u907f\u3051\u307e\u3059\u3002<\/p>\n<p>\u8868\u793a\u30e9\u30d9\u30eb\u3067\u306f\u306a\u304f\u767b\u9332\u6642\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u30ad\u30fc\u3092 `post_type` \u3078\u6e21\u3057\u3001\u516c\u958b\u72b6\u614b\u3068\u30a2\u30fc\u30ab\u30a4\u30d6\u8a2d\u5b9a\u3082\u5225\u306b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u5206\u3051\u308b\u5224\u65ad\u306f\u898b\u305f\u76ee\u3067\u306f\u306a\u304f\u3001\u7ba1\u7406\u30fb\u6a29\u9650\u30fbURL\u30fb\u5165\u529b\u9805\u76ee\u3092\u901a\u5e38\u6295\u7a3f\u3068\u5206\u3051\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>`get_post_types()` \u306e\u767b\u9332\u5024\u3001\u5bfe\u8c61\u6295\u7a3f\u306e `post_type` \u3068 `post_status`\u3001\u6700\u5c0f\u30af\u30a8\u30ea\u3067\u53d6\u5f97\u3067\u304d\u305f\u6295\u7a3fID\u3092\u540c\u6642\u306b\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\/post-type-parameter\/\"><span class=\"article-thumb wpq-related-link__thumb\"><img decoding=\"async\" alt=\"WP_Query\u306epost_type\u6307\u5b9a\u65b9\u6cd5\uff5cpost\u30fbpage\u30fbany\u30fb\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u306e\u9055\u3044 \u306e\u30b5\u30e0\u30cd\u30a4\u30eb\" src=\"https:\/\/wptoolslab.com\/query-lab\/wp-content\/uploads\/2026\/08\/post-type-parameter-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>WP_Query\u306epost_type\u6307\u5b9a\u65b9\u6cd5<\/b><p>`post`\u30fb`page`\u30fb`any`\u30fb\u72ec\u81ea\u30ad\u30fc\u306e\u9055\u3044\u3092\u3001\u5b9f\u969b\u306e `$args` \u3078\u7f6e\u304f\u3068\u3053\u308d\u307e\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\u8cc7\u6599\u3067\u306f\u3001`register_post_type()` \u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067 custom post type \u306e\u767b\u9332\u65b9\u6cd5\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002WP_Query \u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067\u306f\u3001\u767b\u9332\u3057\u305f\u6295\u7a3f\u30bf\u30a4\u30d7\u3092 `post_type` \u3067\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001Plugin Handbook \u306e custom post types \u306b\u95a2\u3059\u308b\u8cc7\u6599\u3067\u306f\u3001custom post type \u3092\u3069\u306e\u3088\u3046\u306b\u767b\u9332\u3057\u3001\u3069\u3046\u6271\u3046\u304b\u306e\u8003\u3048\u65b9\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_post_type\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"wpq-reference-item__copy\"><strong class=\"wpq-reference-item__title\">register_post_type()<\/strong><span class=\"wpq-reference-item__description\">custom post type \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\">\u767b\u9332\u6e08\u307f\u306e custom post type \u3092 `post_type` \u3067\u53d6\u5f97\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\/plugins\/post-types\/registering-custom-post-types\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"wpq-reference-item__copy\"><strong class=\"wpq-reference-item__title\">Registering Custom Post Types<\/strong><span class=\"wpq-reference-item__description\">custom post type \u306e\u767b\u9332\u3068\u6271\u3044\u65b9\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>custom post type \u306f\u3001\u901a\u5e38\u6295\u7a3f\u3084\u56fa\u5b9a\u30da\u30fc\u30b8\u3068\u306f\u5225\u306b\u3001\u72ec\u81ea\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u8ffd\u52a0\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002\u30a4\u30d9\u30f3\u30c8\u3001\u5546\u54c1\u3001\u5236\u4f5c\u5b9f\u7e3e\u306a\u3069\u3001\u901a\u5e38\u6295\u7a3f\u3068\u306f\u5206\u3051\u3066\u7ba1\u7406\u3057\u305f\u3044\u60c5\u5831\u306b\u5411\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8ff7\u3063\u305f\u6642\u306f\u3001\u305d\u308c\u304c\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u7a2e\u985e\u306a\u306e\u304b\u3001\u5206\u985e\u306a\u306e\u304b\u3001\u8ffd\u52a0\u60c5\u5831\u306a\u306e\u304b\u3092\u5148\u306b\u5206\u3051\u307e\u3059\u3002\u7a2e\u985e\u306a\u3089 custom post type\u3001\u5206\u985e\u306a\u3089 taxonomy\u3001\u8ffd\u52a0\u60c5\u5831\u306a\u3089 custom field \u3092\u691c\u8a0e\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>custom post type \u306e\u6700\u7d42\u30c1\u30a7\u30c3\u30af<\/h2><\/div><ul class=\"wpq-checklist\"><li>custom post type \u306f\u72ec\u81ea\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u8ffd\u52a0\u3059\u308b\u4ed5\u7d44\u307f\u3060\u3068\u7406\u89e3\u3057\u3066\u3044\u308b<\/li><li>\u901a\u5e38\u6295\u7a3f\u3001taxonomy\u3001custom field \u3068\u306e\u9055\u3044\u3092\u78ba\u8a8d\u3057\u305f<\/li><li>\u767b\u9332\u306b\u306f <code>register_post_type()<\/code> \u3092\u4f7f\u3046\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f<\/li><li>WP_Query \u3067\u306f <code>post_type<\/code> \u306b\u767b\u9332\u6e08\u307f\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u540d\u3092\u6307\u5b9a\u3057\u305f<\/li><li>\u7ba1\u7406\u753b\u9762\u30e9\u30d9\u30eb\u3068\u30b3\u30fc\u30c9\u4e0a\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u540d\u3092\u6df7\u540c\u3057\u3066\u3044\u306a\u3044<\/li><li>\u307e\u305a\u306f\u6700\u5c0f\u69cb\u6210\u30671\u4ef6\u53d6\u5f97\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3057\u305f<\/li><\/ul><\/section>\n","protected":false},"excerpt":{"rendered":"<p>custom post type \u306f\u3001\u901a\u5e38\u6295\u7a3f\u3084\u56fa\u5b9a\u30da\u30fc\u30b8\u3068\u306f\u5225\u306b\u3001\u72ec\u81ea\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u8ffd\u52a0\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002\u304a\u77e5\u3089\u305b\u3001\u5546\u54c1\u3001\u30a4\u30d9\u30f3\u30c8\u3001\u4e8b\u4f8b\u306a\u3069\u3092\u5206\u3051\u3066\u7ba1\u7406\u30fb\u8868\u793a\u3057\u305f\u3044\u6642\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":3780,"template":"","meta":{"wpq_kicker":"\u7528\u8a9e\u96c6","wpq_lead":"custom post type \u306f\u3001WordPress \u306b\u72ec\u81ea\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u8ffd\u52a0\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002\u901a\u5e38\u6295\u7a3f\u3068\u306f\u5225\u306b\u3001\u304a\u77e5\u3089\u305b\u3001\u5546\u54c1\u3001\u30a4\u30d9\u30f3\u30c8\u3001\u5236\u4f5c\u5b9f\u7e3e\u306a\u3069\u3092\u7ba1\u7406\u3057\u305f\u3044\u6642\u306b\u4f7f\u3044\u307e\u3059\u3002WP_Query \u3067\u53d6\u5f97\u3059\u308b\u6642\u306f\u3001post_type \u306b\u305d\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002","wpq_hero_title_line1":"WP_Query \u7528\u8a9e","wpq_hero_title_line2":"custom post type","wpq_hero_title_accent":"custom post type","wpq_hero_thumbnail_alt":"custom post type \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_post_type()|https:\/\/developer.wordpress.org\/reference\/functions\/register_post_type\/\nWP_Query Class|https:\/\/developer.wordpress.org\/reference\/classes\/wp_query\/\nRegistering Custom Post Types|https:\/\/developer.wordpress.org\/plugins\/post-types\/registering-custom-post-types\/","wpq_update_history":"","wpq_pr_notice":"","footnotes":""},"wpq_glossary_group":[62],"wpq_glossary_attribute":[38,64],"class_list":["post-432","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\/432","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":2,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary\/432\/revisions"}],"predecessor-version":[{"id":4001,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary\/432\/revisions\/4001"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/media\/3780"}],"wp:attachment":[{"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/media?parent=432"}],"wp:term":[{"taxonomy":"wpq_glossary_group","embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary_group?post=432"},{"taxonomy":"wpq_glossary_attribute","embeddable":true,"href":"https:\/\/wptoolslab.com\/query-lab\/wp-json\/wp\/v2\/wpq_glossary_attribute?post=432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}