{"id":2445,"date":"2016-09-20T09:49:50","date_gmt":"2016-09-20T00:49:50","guid":{"rendered":"http:\/\/tcd-manual.net\/?p=2445"},"modified":"2020-09-26T08:26:58","modified_gmt":"2020-09-25T23:26:58","slug":"%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e6%8a%95%e7%a8%bf%e3%82%bf%e3%82%a4%e3%83%97%e3%80%8c%e5%95%86%e5%93%81%e3%80%8d%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e6%8a%95%e7%a8%bf%e3%81%ab%e3%82%a2%e3%82%a4","status":"publish","type":"post","link":"https:\/\/tcd-manual.net\/?p=2445","title":{"rendered":"TCD\u30c6\u30fc\u30dePrecious\uff1a\u300c\u5546\u54c1\u300d\u30da\u30fc\u30b8\u306b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h4 class=\"style_headline2\"><span>Q.<\/span>\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u300c\u5546\u54c1\u300d\u30da\u30fc\u30b8\u306e\u6295\u7a3f\u306b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u3092\u5165\u308c\u305f\u3044<\/h4>\n<p>\u7279\u306b\u5546\u54c1\u30da\u30fc\u30b8\u3092\u300c\u95a2\u9023\u8a18\u4e8b\u30ab\u30fc\u30c9\u30ea\u30f3\u30af\u300d\u3067\u8a2d\u5b9a\u3057\u305f\u3044\u3068\u304d\u306b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u3092\u5165\u308c\u306a\u3051\u308c\u3070\u30b5\u30e0\u30cd\u30a4\u30eb\u90e8\u5206\u304c\u300cNo image\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4 class=\"style_headline2\"><span>A.<\/span>\u4e0b\u8a18\u306ephp\u30d5\u30a1\u30a4\u30eb\u306e\u8a72\u5f53\u7b87\u6240\u3092\u7de8\u96c6\u3057\u307e\u3059<\/h4>\n<p>\u7de8\u96c6\u3059\u308b\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\uff1afunction.php<br \/>\nbefore<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/\/\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u3000\u300c\u5546\u54c1\u300d\u3092\u8ffd\u52a0 ----------------------------------------------------------------\r\n\r\nif ( function_exists('register_post_type') ) {\r\n $labels = array(\r\n  'name' =&gt; __('Product', 'tcd-w'),\r\n  'singular_name' =&gt; __('Product', 'tcd-w'),\r\n  'add_new' =&gt; __('Add New', 'tcd-w'),\r\n  'add_new_item' =&gt; __('Add New Item', 'tcd-w'),\r\n  'edit_item' =&gt; __('Edit', 'tcd-w'),\r\n  'new_item' =&gt; __('New item', 'tcd-w'),\r\n  'view_item' =&gt; __('View Item', 'tcd-w'),\r\n  'search_items' =&gt; __('Search Items', 'tcd-w'),\r\n  'not_found' =&gt; __('Not Found', 'tcd-w'),\r\n  'not_found_in_trash' =&gt; __('Not found in trash', 'tcd-w'), \r\n  'parent_item_colon' =&gt; ''\r\n );\r\n\r\n register_post_type('product', array(\r\n  'label' =&gt; __('Product', 'tcd-w'),\r\n  'labels' =&gt; $labels,\r\n  'public' =&gt; true,\r\n  'publicly_queryable' =&gt; true,\r\n  'menu_position' =&gt; 5,\r\n  'show_ui' =&gt; true,\r\n  'query_var' =&gt; true,\r\n  'rewrite' =&gt; array('slug' =&gt; 'product'),\r\n  'capability_type' =&gt; 'post',\r\n  'has_archive' =&gt; true,\r\n  'supports' =&gt; array('title','editor')\r\n ));\r\n};\r\n<\/pre>\n<p>\u2193 after<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/\/\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u3000\u300c\u5546\u54c1\u300d\u3092\u8ffd\u52a0 ----------------------------------------------------------------\r\n\r\nif ( function_exists('register_post_type') ) {\r\n $labels = array(\r\n  'name' =&gt; __('Product', 'tcd-w'),\r\n  'singular_name' =&gt; __('Product', 'tcd-w'),\r\n  'add_new' =&gt; __('Add New', 'tcd-w'),\r\n  'add_new_item' =&gt; __('Add New Item', 'tcd-w'),\r\n  'edit_item' =&gt; __('Edit', 'tcd-w'),\r\n  'new_item' =&gt; __('New item', 'tcd-w'),\r\n  'view_item' =&gt; __('View Item', 'tcd-w'),\r\n  'search_items' =&gt; __('Search Items', 'tcd-w'),\r\n  'not_found' =&gt; __('Not Found', 'tcd-w'),\r\n  'not_found_in_trash' =&gt; __('Not found in trash', 'tcd-w'), \r\n  'parent_item_colon' =&gt; ''\r\n );\r\n\r\n register_post_type('product', array(\r\n  'label' =&gt; __('Product', 'tcd-w'),\r\n  'labels' =&gt; $labels,\r\n  'public' =&gt; true,\r\n  'publicly_queryable' =&gt; true,\r\n  'menu_position' =&gt; 5,\r\n  'show_ui' =&gt; true,\r\n  'query_var' =&gt; true,\r\n  'rewrite' =&gt; array('slug' =&gt; 'product'),\r\n  'capability_type' =&gt; 'post',\r\n  'has_archive' =&gt; true,\r\n  'supports' =&gt; array('title','editor','thumbnail') \/\/\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u3092\u8ffd\u52a0\r\n ));\r\n};\r\n<\/pre>\n<p>\u4e07\u304c\u4e00\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306b\u3088\u3063\u3066\u4e0d\u5177\u5408\u304c\u751f\u3058\u3066\u3082\u5f0a\u793e\u3067\u306f\u8cac\u4efb\u3092\u8ca0\u3044\u304b\u306d\u307e\u3059\u306e\u3067<br \/>\n\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306b\u969b\u3057\u3066\u306f\u5fc5\u305a\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3054\u7528\u610f\u306e\u4e0a\u3001<br \/>\n\u304a\u5ba2\u69d8\u306e\u8cac\u4efb\u306b\u304a\u3044\u3066\u5b9f\u65bd\u3057\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3088\u3046\u304a\u9858\u3044\u7533\u3057\u4e0a\u3052\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Q.\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u300c\u5546\u54c1\u300d\u30da\u30fc\u30b8\u306e\u6295\u7a3f\u306b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u3092\u5165\u308c\u305f\u3044 \u7279\u306b\u5546\u54c1\u30da\u30fc\u30b8\u3092\u300c\u95a2\u9023\u8a18\u4e8b\u30ab\u30fc\u30c9\u30ea\u30f3\u30af\u300d\u3067\u8a2d\u5b9a\u3057\u305f\u3044\u3068\u304d\u306b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u3092\u5165\u308c\u306a\u3051\u308c\u3070\u30b5\u30e0\u30cd\u30a4\u30eb\u90e8\u5206\u304c\u300cNo image\u300d\u3068\u306a\u308a\u307e\u3059\u3002 A.\u4e0b\u8a18\u306ephp\u30d5 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[60,350,65],"class_list":["post-2445","post","type-post","status-publish","format-standard","hentry","category-tcd019","tag-eye-catch","tag-350","tag-thumbnail"],"_links":{"self":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/2445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2445"}],"version-history":[{"count":0,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/2445\/revisions"}],"wp:attachment":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}