{"id":192287,"date":"2014-10-22T22:16:46","date_gmt":"2014-10-22T13:16:46","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/2014\/10\/22\/advanced-custom-fields-%e3%81%a7%e4%bd%9c%e3%81%a3%e3%81%9f%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%8c%e8%a8%ad%e7%bd%ae%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84\/"},"modified":"2014-10-22T22:16:46","modified_gmt":"2014-10-22T13:16:46","slug":"advanced-custom-fields-%e3%81%a7%e4%bd%9c%e3%81%a3%e3%81%9f%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%8c%e8%a8%ad%e7%bd%ae%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/advanced-custom-fields-%e3%81%a7%e4%bd%9c%e3%81%a3%e3%81%9f%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%8c%e8%a8%ad%e7%bd%ae%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84\/","title":{"rendered":"advanced custom fields \u3067\u4f5c\u3063\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u8a2d\u7f6e\u3067\u304d\u306a\u3044"},"content":{"rendered":"<p>\u306f\u3058\u3081\u307e\u3057\u3066<br \/>\nGatespace\u3055\u3093\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u30aa\u30ea\u30b8\u30ca\u30eb\u6a29\u9650\u306e\u3042\u308b\u30ab\u30b9\u30bf\u30e0\u30dd\u30b9\u30c8\u3092\u8a2d\u7f6e\u3057\u307e\u3057\u305f\u3002<br \/>\n<a href=\"http:\/\/gatespace.jp\/2012\/05\/24\/custom-post-type-and-user-role-fix\/\">http:\/\/gatespace.jp\/2012\/05\/24\/custom-post-type-and-user-role-fix\/<\/a><\/p>\n<pre><code>$report_labels = array(\n\t\t&#039;name&#039; =&gt; &quot;\u30ec\u30dd\u30fc\u30c8&quot;,\n\t\t&#039;singular_name&#039; =&gt; &quot;\u30ec\u30dd\u30fc\u30c8&quot;,\n\t\t&#039;add_new&#039; =&gt; &quot;\u65b0\u898f\u8ffd\u52a0&quot;,\n\t\t&#039;add_new_item&#039; =&gt; &quot;\u65b0\u898f\u30ec\u30dd\u30fc\u30c8\u8ffd\u52a0&quot;,\n\t\t&#039;edit_item&#039; =&gt; &quot;\u30ec\u30dd\u30fc\u30c8\u3092\u7de8\u96c6&quot;,\n\t\t&#039;new_item&#039; =&gt; &quot;\u65b0\u898f\u30ec\u30dd\u30fc\u30c8&quot;,\n\t\t&#039;view_item&#039; =&gt; &quot;\u8868\u793a&quot;,\n\t\t&#039;search_items&#039; =&gt; &quot;\u30ec\u30dd\u30fc\u30c8\u3092\u691c\u7d22&quot;,\n\t\t&#039;not_found&#039; =&gt; &quot;\u898b\u3064\u304b\u308a\u307e\u305b\u3093&quot;,\n\t\t&#039;not_found_in_trash&#039; =&gt;&quot;\u30b4\u30df\u7bb1\u306b\u306f\u3042\u308a\u307e\u305b\u3093&quot;,\n\t\t&#039;parent_item_colon&#039; =&gt; &#039;\u89aa&#039;,\n\t\t&#039;menu_name&#039; =&gt; &#039;\u30ec\u30dd\u30fc\u30c8&#039;\n\t);\n\t$report_args = array(\n\t\t&#039;labels&#039; =&gt; $report_labels,\n\t\t&#039;public&#039; =&gt; true,\n\t\t&#039;publicly_queryable&#039; =&gt; true,\n\t\t&#039;show_ui&#039; =&gt; true,\n\t\t&#039;show_in_menu&#039; =&gt; true,\n\t\t&#039;query_var&#039; =&gt; true,\n\t\t&#039;rewrite&#039; =&gt; true,\n\t\t&#039;capability_type&#039; =&gt; &#039;post_report&#039;, \/\/ \u901a\u5e38\u306fpost\u3060\u304c\u4efb\u610f\u306epost_report\u306b\u3059\u308b\n\t\t&#039;has_archive&#039; =&gt; true,\n\t\t&#039;hierarchical&#039; =&gt; false,\n\t\t&#039;menu_position&#039; =&gt; 5,\n\t\t&#039;map_meta_cap&#039; =&gt; true,\n\t\t&#039;supports&#039; =&gt; array( &#039;title&#039;, &#039;editor&#039;, &#039;author&#039;, &#039;thumbnail&#039;, &#039;excerpt&#039;, &#039;comments&#039; ),\n\t\t&#039;taxonomies&#039; =&gt; array( &#039;reportcat&#039; )\n\t);\n\tregister_post_type( &#039;report&#039;, $report_args );\n}\nadd_action( &#039;init&#039;, &#039;codex_custom_init&#039;, 0);<\/code><\/pre>\n<p>\u3053\u3061\u3089\u306e\u30ab\u30b9\u30bf\u30e0\u30dd\u30b9\u30c8\u306badvanced custom fields\u3067\u4f5c\u3063\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8a2d\u7f6e\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u30eb\u30fc\u30eb\u3067\u6295\u7a3f\u30bf\u30a4\u30d7=&gt;report\u3001\u3084\u30e6\u30fc\u30b6\u30fc\uff08\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3082\u540c\u69d8\uff09=&gt;\u30aa\u30ea\u30b8\u30ca\u30eb\u6a29\u9650\u3092\u8a2d\u5b9a\u3057\u3066\u3082\u3001\u6295\u7a3f\u753b\u9762\u306b\u306f\u53cd\u6620\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n<code>&#039;capability_type&#039; =&gt; &#039;post_report&#039;,<\/code><br \/>\n\u3092<br \/>\n<code>&#039;capability_type&#039; =&gt; &#039;post&#039;,<\/code><br \/>\n\u306b\u3059\u308b\u3068\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u53cd\u6620\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u5f53\u7136\u30ab\u30b9\u30bf\u30e0\u30dd\u30b9\u30c8\u3060\u3051\u3067\u306a\u304f\u3001\u901a\u5e38\u306e\u6295\u7a3f\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3053\u306ecapability_type\u306e\u307e\u307e\u3067\u3001advanced custom fields\u3092\u8a2d\u7f6e\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n","protected":false},"template":"","class_list":["post-192287","topic","type-topic","status-closed","hentry","topic-tag-advanced-custom-fields","topic-tag-17520"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/192287","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\/192287\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=192287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}