{"id":4778,"date":"2018-11-30T15:56:13","date_gmt":"2018-11-30T06:56:13","guid":{"rendered":"http:\/\/tcd-manual.net\/?p=4778"},"modified":"2018-11-30T16:43:14","modified_gmt":"2018-11-30T07:43:14","slug":"tcd%e3%83%86%e3%83%bc%e3%83%9eorion%ef%bc%9a%e3%83%98%e3%83%83%e3%83%80%e3%83%bc%e3%81%ae%e5%8b%95%e7%94%bb%e3%82%92%e9%80%a3%e7%b6%9a%e5%86%8d%e7%94%9f%e3%81%95%e3%81%9b%e3%81%aa%e3%81%84%e6%96%b9-78","status":"publish","type":"post","link":"https:\/\/tcd-manual.net\/?p=4778","title":{"rendered":"TCD\u30c6\u30fc\u30deSTORY\uff1a\u30ae\u30e3\u30e9\u30ea\u30fc\u30da\u30fc\u30b8\u306e\u30d1\u30f3\u304f\u305a\u30ea\u30b9\u30c8\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h4 class=\"style_headline2\"><span>Q.<\/span>\u30ae\u30e3\u30e9\u30ea\u30fc\u30da\u30fc\u30b8\u306e\u30d1\u30f3\u304f\u305a\u30ea\u30b9\u30c8\u3092\u5909\u66f4\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u3069\u306e\u3088\u3046\u306b\u3057\u305f\u3089\u51fa\u6765\u307e\u3059\u3067\u3057\u3087\u3046\u304b\uff1f<\/h4>\n<h4 class=\"style_headline2\"><span>A.<\/span>\u4e0b\u8a18\u306e\u65b9\u6cd5\u3067\u3054\u5bfe\u5fdc\u304f\u3060\u3055\u3044\u3002<\/h4>\n<p>\u4e0b\u8a18\u5185\u5bb9\u3092\u3054\u8a18\u8ff0\u9802\u304f\u3053\u3068\u3067\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a<br \/>\nfunctions.php<br \/>\ntemplate-parts\/breadcrumb.php<\/p>\n<p>\u2460\u30da\u30fc\u30b8\u30bf\u30a4\u30c8\u30eb\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p>\u7de8\u96c6\u7b87\u6240\uff1a<br \/>\n\u3010functions.php\u3011<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n   $gallery_labels = array(\r\n        'name' =&gt; __( 'Gallery', 'tcd-w' )\r\n    );\r\n\r\n\u3000\u3000\u2193\r\n    $gallery_labels = array(\r\n        'name' =&gt; '\u4efb\u610f\u306e\u6587\u5b57\u5217'\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>\u3000\u3000\u2193<\/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        'rewrite' =&gt; array('slug' =&gt; 'gallery_test'),\u3000\r\n        'supports' =&gt; array( 'revisions', 'title' )\r\n    );\r\n<\/pre>\n<p>\u203b\u30ad\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; 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>\u3000\u3000\u2193<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n   elseif ( is_post_type_archive( 'gallery' ) :disappointed:\r\n        echo '&lt;li&gt;\u4efb\u610f\u306e\u6587\u5b57\u5217&lt;\/li&gt;' . &quot;\\n&quot;;\r\n<\/pre>\n<p>\u203b\u4ee5\u4e0b\u30ae\u30e3\u30e9\u30ea\u30fc\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; 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>\u3000\u3000\u2193<\/p>\n<pre class=\"brush: php; 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;\u4efb\u610f\u306e\u6587\u5b57\u5217&lt;\/a&gt;&lt;\/li&gt;' .\r\n&quot;\\n&quot;;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"Q.\u30ae\u30e3\u30e9\u30ea\u30fc\u30da\u30fc\u30b8\u306e\u30d1\u30f3\u304f\u305a\u30ea\u30b9\u30c8\u3092\u5909\u66f4\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u3069\u306e\u3088\u3046\u306b\u3057\u305f\u3089\u51fa\u6765\u307e\u3059\u3067\u3057\u3087\u3046\u304b\uff1f A.\u4e0b\u8a18\u306e\u65b9\u6cd5\u3067\u3054\u5bfe\u5fdc\u304f\u3060\u3055\u3044\u3002 \u4e0b\u8a18\u5185\u5bb9\u3092\u3054\u8a18\u8ff0\u9802\u304f\u3053\u3068\u3067\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002 \u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a functi [&hellip;]","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[436],"tags":[480,95],"class_list":["post-4778","post","type-post","status-publish","format-standard","hentry","category-tcd041","tag-gallery","tag-bread-crumb"],"_links":{"self":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/4778","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4778"}],"version-history":[{"count":0,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/4778\/revisions"}],"wp:attachment":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}