{"id":150155,"date":"2012-07-22T11:45:00","date_gmt":"2012-07-22T02:45:00","guid":{"rendered":""},"modified":"2016-07-30T20:03:49","modified_gmt":"2016-07-30T20:03:49","slug":"%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e5%88%86%e9%a1%9e%e3%81%ae%e3%82%b9%e3%83%a9%e3%83%83%e3%82%b0%e3%81%8b%e3%82%89%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e6%8a%95%e7%a8%bf%e5%90%8d%e3%82%92%e5%8f%96","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e5%88%86%e9%a1%9e%e3%81%ae%e3%82%b9%e3%83%a9%e3%83%83%e3%82%b0%e3%81%8b%e3%82%89%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e6%8a%95%e7%a8%bf%e5%90%8d%e3%82%92%e5%8f%96\/","title":{"rendered":"\u30ab\u30b9\u30bf\u30e0\u5206\u985e\u306e\u30b9\u30e9\u30c3\u30b0\u304b\u3089\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u540d\u3092\u53d6\u5f97\u3057\u305f\u3044"},"content":{"rendered":"<p>\u521d\u6b69\u7684\u306a\u8cea\u554f\u3067\u3059\u307f\u307e\u305b\u3093\u2026\u3002<br \/>\n\u4eca\u56de\u521d\u3081\u3066\u30ab\u30b9\u30bf\u30e0\u5206\u985e\u3068\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u3092\u4f7f\u3046\u306e\u3067\u3001\u8272\u3005\u8abf\u3079\u305f\u306e\u3067\u3059\u304c\u308f\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u2026\u3002<\/p>\n<pre>\n$labels = array(\n  'name' =&gt; '\u30a4\u30d9\u30f3\u30c8',\n  'singular_name' =&gt; '\u30a4\u30d9\u30f3\u30c8',\n  'add_new' =&gt; '\u65b0\u898f\u30a4\u30d9\u30f3\u30c8',\n  'add_new_item' =&gt; '\u65b0\u898f\u30a4\u30d9\u30f3\u30c8\u3092\u8ffd\u52a0',\n  'edit_item' =&gt; '\u30a4\u30d9\u30f3\u30c8\u3092\u7de8\u96c6',\n  'new_item' =&gt; '\u65b0\u3057\u3044\u30a4\u30d9\u30f3\u30c8',\n  'view_item' =&gt; '\u30a4\u30d9\u30f3\u30c8\u3092\u7de8\u96c6',\n  'search_items' =&gt; '\u30a4\u30d9\u30f3\u30c8\u3092\u691c\u7d22',\n  'not_found' =&gt; '\u30a4\u30d9\u30f3\u30c8\u304c\u3042\u308a\u307e\u305b\u3093',\n  'not_found_in_trash' =&gt; '\u30b4\u30df\u7bb1\u306b\u30a4\u30d9\u30f3\u30c8\u306f\u3042\u308a\u307e\u305b\u3093',\n  'parent_item_colon' =&gt; '',\n);\n\nregister_post_type(\n  'event',\n  array(\n    'labels' =&gt; $labels,\n    'description' =&gt; '\u30a4\u30d9\u30f3\u30c8\u60c5\u5831',\n    'public' =&gt; true,\n    'show_ui' =&gt; true,\n    'publicly_queryable' =&gt; true,\n    'query_var' =&gt; true,\n    'hierarchical' =&gt; true,\n    'menu_position' =&gt; 5,\n    'has_archive' =&gt; true,\n    'supports' =&gt; array(\n      'title',\n      'editor',\n      'thumbnail',\n      'custom-fields',\n      'post-formats'\n    ),\n  )\n);\n\n$labels = array(\n  'name' =&gt; _x( 'Categories', 'taxonomy general name' ),\n  'singular_name' =&gt; _x( 'Category', 'taxonomy singular name' ),\n  'search_items' =&gt; __( 'Search Categories' ),\n  'popular_items' =&gt; '',\n  'all_items' =&gt; __( 'All Categories' ),\n  'parent_item' =&gt; __( 'Parent Category' ),\n  'parent_item_colon' =&gt; __( 'Parent Category:' ),\n  'edit_item' =&gt; __( 'Edit Category' ),\n  'update_item' =&gt; __( 'Update Category' ),\n  'add_new_item' =&gt; __( 'Add New Category' ),\n  'new_item_name' =&gt; __( 'New Category Name' ),\n  'separate_items_with_commas' =&gt; '',\n  'add_or_remove_items' =&gt; '',\n  'choose_from_most_used' =&gt; '',\n);\n\nregister_taxonomy(\n  'eventinfo',\n  'event',\n  array(\n    'label' =&gt; '\u30a4\u30d9\u30f3\u30c8\u30ab\u30c6\u30b4\u30ea',\n    'labels' =&gt; $labels,\n    'public' =&gt; true,\n    'show_ui' =&gt; true,\n    'show_tagcloud' =&gt; true,\n    'hierarchical' =&gt; true,\n    'update_count_callback' =&gt; '',\n    'rewrite' =&gt; true,\n    'query_var' =&gt; true\n  )\n);\n<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u30ab\u30b9\u30bf\u30e0\u5206\u985e\u3068\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3084\u308a\u305f\u3044\u3053\u3068\u306f\u3001\u4e0a\u306e\u4f8b\u3067 event \u304b\u3089 eventinfo \u3068\u3044\u3046\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3057\u305f\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u306f\u6295\u7a3f\u30da\u30fc\u30b8\u306e\u30ab\u30c6\u30b4\u30ea\u30b9\u30e9\u30c3\u30b0\u306e\u3088\u3046\u306b<br \/>\n\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u5168\u4f53\u3092\u30b9\u30e9\u30c3\u30b0\u3067\u6271\u3044\u305f\u3044\u306e\u3067\u3059\u304c\u2026\u3002<\/p>\n<p>\u3072\u3087\u3063\u3068\u3057\u3066\u6839\u672c\u7684\u306b\u9593\u9055\u3063\u3066\u307e\u3059\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n","protected":false},"template":"","class_list":["post-150155","topic","type-topic","status-closed","hentry","topic-tag-16828","topic-tag-16405"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/150155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/150155\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=150155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}