{"id":3628,"date":"2017-06-09T21:25:58","date_gmt":"2017-06-09T12:25:58","guid":{"rendered":"http:\/\/tcd-manual.net\/?p=3628"},"modified":"2019-05-25T17:06:28","modified_gmt":"2019-05-25T08:06:28","slug":"tcd%e3%83%86%e3%83%bc%e3%83%9estory%e3%81%ae%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%81%a7%e8%87%aa%e5%8b%95%e7%9a%84%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%81%95","status":"publish","type":"post","link":"https:\/\/tcd-manual.net\/?p=3628","title":{"rendered":"TCD\u30c6\u30fc\u30deSTORY\uff1a\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u3067\u81ea\u52d5\u7684\u306b\u8868\u793a\u3055\u308c\u308b\u6587\u8a00\u3068\u30b9\u30e9\u30c3\u30b0\uff08URL\uff09\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h4 class=\"style_headline2\"><span>Q.<\/span>\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u540d\u3092\u5909\u66f4\u3057\u305f\u3044<\/h4>\n<p>\u591a\u304f\u306eTCD\u30c6\u30fc\u30de\u3067\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u3092\u5b9f\u88c5\u3057\u3066\u304a\u308a\u307e\u3059\u304c\u3001\u30cb\u30e5\u30fc\u30b9\u3084\u304a\u77e5\u3089\u305b\u4ee5\u5916\u306b\u3082\u4f5c\u6210\u3059\u308b\u30b5\u30a4\u30c8\u306b\u3088\u3063\u3066\u306f\u3001\u540d\u524d\u3084\u30b9\u30e9\u30c3\u30b0\uff08URL\uff09\u3092\u5909\u66f4\u3057\u305f\u3044\u3082\u306e\u304c\u3042\u308b\u3068\u601d\u3044\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>\u305d\u306e\u305f\u3081\u3001\u6700\u8fd1\u306eTCD\u30c6\u30fc\u30de\u3067\u306f\u30c6\u30fc\u30de\u30aa\u30d7\u30b7\u30e7\u30f3\u304b\u3089\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u308a\u307e\u3059\u3002<br \/>\n\u8a72\u5f53\u3057\u306a\u3044\u30c6\u30fc\u30de\u306e\u5834\u5408\u306b\u306f\u3001\u3054\u81ea\u8eab\u3067\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nSTORY\u30c6\u30fc\u30de\u306e\u30ae\u30e3\u30e9\u30ea\u30fc(gallery)\u3092\u300c\u30a4\u30d9\u30f3\u30c8(event)\u300d\u306b\u3057\u305f\u3044\u6642\u3092\u4f8b\u306b\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u3010STORY\u306e\u5834\u5408\u3011<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb-1\uff1a<\/b>functions.php<\/p>\n<p><b>\u7de8\u96c6\u3059\u308b\u7b87\u6240\uff1a<\/b><br \/>\n\u203b\u30da\u30fc\u30b8\u30bf\u30a4\u30c8\u30eb\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; highlight: [2]; title: ; notranslate\" title=\"\">\r\n $gallery_labels = array(\r\n        'name' =&gt; __( 'Gallery', 'tcd-w' )\r\n    );\r\n<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: php; highlight: [2]; title: ; notranslate\" title=\"\">\r\n    $gallery_labels = array(\r\n        'name' =&gt; '\u30a4\u30d9\u30f3\u30c8'\r\n    );\r\n<\/pre>\n<p>\u203b\u30b9\u30e9\u30c3\u30b0\u306e\u5909\u66f4<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n    $gallery_args = array(\r\n        'has_archive' =&gt; true,\r\n        'labels' =&gt; $gallery_labels,\r\n        'menu_position' =&gt; 5,\r\n        'public' =&gt; true,\r\n        'supports' =&gt; array( 'revisions', 'title' )\r\n    );\r\n<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: php; highlight: [5]; title: ; notranslate\" title=\"\">\r\n        'has_archive' =&gt; true,\r\n        'labels' =&gt; $gallery_labels,\r\n        'menu_position' =&gt; 5,\r\n        'public' =&gt; true,\r\n        'rewrite' =&gt; array('slug' =&gt; 'event'),\r\n        'supports' =&gt; array( 'revisions', 'title' )\r\n<\/pre>\n<p><b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb-2\uff1a<\/b>template-parts\/breadcrumb.php<br \/>\n\u203b\u30ae\u30e3\u30e9\u30ea\u30fc\u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u30da\u30fc\u30b8\u306e\u30d1\u30f3\u304f\u305a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; highlight: [2]; title: ; notranslate\" title=\"\">\r\n   elseif ( is_post_type_archive( 'gallery' ) :disappointed:\r\n        echo '&lt;li&gt;' . __( 'Gallery', 'tcd-w' ) . '&lt;\/li&gt;' . &quot;\\n&quot;;\r\n<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: php; highlight: [2]; title: ; notranslate\" title=\"\">\r\n   elseif ( is_post_type_archive( 'gallery' ) :disappointed:\r\n        echo '&lt;li&gt;\u30a4\u30d9\u30f3\u30c8&lt;\/li&gt;' . &quot;\\n&quot;;\r\n<\/pre>\n<p>\u203b\u30ae\u30e3\u30e9\u30ea\u30fc\u4ee5\u4e0b\u306b\u542b\u307e\u308c\u307e\u3059\u500b\u5225\u8a18\u4e8b\u306e\u30d1\u30f3\u304f\u305a\u306b\u3064\u3044\u3066\u3082\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; highlight: [3]; title: ; notranslate\" title=\"\">\r\n       if ( is_singular( 'gallery' ) ) :\r\n            echo '&lt;li&gt;&lt;a href=&quot;' . esc_url(\r\nget_post_type_archive_link( 'gallery' ) ) . '&quot;&gt;' . __( 'Gallery',\r\n'tcd-w' ) . '&lt;\/a&gt;&lt;\/li&gt;' . &quot;\\n&quot;;\r\n<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: php; highlight: [3]; title: ; notranslate\" title=\"\">\r\n       if ( is_singular( 'gallery' ) ) :\r\n            echo '&lt;li&gt;&lt;a href=&quot;' . esc_url(\r\nget_post_type_archive_link( 'gallery' ) ) . '&quot;&gt;\u30a4\u30d9\u30f3\u30c8&lt;\/a&gt;&lt;\/li&gt;' .\r\n&quot;\\n&quot;;\r\n<\/pre>\n<p>\u4e0b\u8a18\u306e\u56f3\u306e\u3088\u3046\u306a\u7ba1\u7406\u753b\u9762\u306e\u30e1\u30cb\u30e5\u30fc\u300c\u30d7\u30ed\u30b0\u30e9\u30e0\u300d\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001&#8217;name&#8217; \u306e\u5024\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tcd-manual.net\/wp-content\/uploads\/2017\/02\/pro001.jpg\" alt=\"\" width=\"443\" height=\"279\" class=\"alignnone size-full wp-image-2903\" srcset=\"https:\/\/tcd-manual.net\/wp-content\/uploads\/2017\/02\/pro001.jpg 443w, https:\/\/tcd-manual.net\/wp-content\/uploads\/2017\/02\/pro001-300x189.jpg 300w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><\/p>\n<p>\u4e0b\u8a18\u306e\u56f3\u306e\u3088\u3046\u306aURL\u7b49\u306b\u8868\u793a\u3055\u308c\u308b\u30b9\u30e9\u30c3\u30b0\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001&#8217;rewrite&#8217; \u306e\u5024\u3067\u3042\u308b\u914d\u5217\u4e2d\u306e&#8217;slug&#8217;\u306e\u5024\u3092\u4efb\u610f\u306b\u3054\u5909\u66f4\u304f\u3060\u3055\u3044\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tcd-manual.net\/wp-content\/uploads\/2017\/02\/pro002.jpg\" alt=\"\" width=\"570\" height=\"37\" class=\"alignnone size-full wp-image-2904\" srcset=\"https:\/\/tcd-manual.net\/wp-content\/uploads\/2017\/02\/pro002.jpg 570w, https:\/\/tcd-manual.net\/wp-content\/uploads\/2017\/02\/pro002-300x19.jpg 300w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/p>\n<p>\u4f8b\uff09<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n'name' =&gt; __('\u25cf\u25cf\u25cf')\r\n'rewrite' =&gt; array('slug' =&gt; '\u25cf\u25cf\u25cf')\r\n<\/pre>\n<p>\u203b\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u5909\u66f4\u3092\u4f34\u3044\u307e\u3059\u306e\u3067\u3001\u4ee5\u524d\u306e\u30b9\u30e9\u30c3\u30b0\u306f\u4f7f\u7528\u4e0d\u53ef\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u4e0a\u8a18\u5909\u66f4\u306b\u3088\u308a404\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u969b\u306f\u3000\u8a2d\u5b9a\uff1e\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u8a2d\u5b9a\u3067\u5909\u66f4\u3092\u4fdd\u5b58\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002\uff08\u8a2d\u5b9a\u5909\u66f4\u306f\u4e0d\u8981\u3067\u3001\u305f\u3060\u4fdd\u5b58\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3060\u3051\u3067\u7d50\u69cb\u3067\u3059\u3002\uff09<\/p>\n<p>\u203b\u4eca\u56de\u3054\u6848\u5185\u3057\u3066\u3044\u308bfunctions.php\u306f\u6975\u3081\u3066\u91cd\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u69cb\u6587\u4e0a\u306e\u30df\u30b9\u7b49\u304c\u3054\u3056\u3044\u307e\u3059\u3068\u3001\u7ba1\u7406\u753b\u9762\u3092\u542b\u3081\u30b5\u30a4\u30c8\u5168\u4f53\u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u308b\u3053\u3068\u304c\u3054\u3056\u3044\u307e\u3059\u3002<br \/>\n\u3082\u3057\u305d\u3046\u3057\u305f\u73fe\u8c61\u304c\u767a\u751f\u3044\u305f\u3057\u307e\u3057\u305f\u3089\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u304a\u3044\u305ffunctions.php\u3092<br \/>\nFTP\u7d4c\u7531\u3067\u540c\u540d\u30d5\u30a1\u30a4\u30eb\u306b\u4e0a\u66f8\u304d\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u5143\u306e\u72b6\u614b\u306b\u304a\u623b\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u25a0MAXX\u306e\u5834\u5408<br \/>\n<a href=\"https:\/\/tcd-manual.net\/?p=2000\" target=\"_blank\">https:\/\/tcd-manual.net\/?p=2899<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Q.\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u540d\u3092\u5909\u66f4\u3057\u305f\u3044 \u591a\u304f\u306eTCD\u30c6\u30fc\u30de\u3067\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u3092\u5b9f\u88c5\u3057\u3066\u304a\u308a\u307e\u3059\u304c\u3001\u30cb\u30e5\u30fc\u30b9\u3084\u304a\u77e5\u3089\u305b\u4ee5\u5916\u306b\u3082\u4f5c\u6210\u3059\u308b\u30b5\u30a4\u30c8\u306b\u3088\u3063\u3066\u306f\u3001\u540d\u524d\u3084\u30b9\u30e9\u30c3\u30b0\uff08URL\uff09\u3092\u5909\u66f4\u3057\u305f\u3044\u3082\u306e\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002 A.\u4e0b\u8a18\u306ephp [&hellip;]","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[436,63],"tags":[350,348,192,448],"class_list":["post-3628","post","type-post","status-publish","format-standard","hentry","category-tcd041","category-common","tag-350","tag-348","tag-192","tag-448"],"_links":{"self":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/3628","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3628"}],"version-history":[{"count":0,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/3628\/revisions"}],"wp:attachment":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}