{"id":1113,"date":"2016-03-20T13:36:55","date_gmt":"2016-03-20T04:36:55","guid":{"rendered":"http:\/\/tcd-manual.net\/?p=1113"},"modified":"2019-03-26T00:32:40","modified_gmt":"2019-03-25T15:32:40","slug":"%e3%83%96%e3%83%ad%e3%82%b0%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e8%a6%8b%e5%87%ba%e3%81%97%e3%80%8c%e3%83%96%e3%83%ad%e3%82%b0%e3%80%8d%e3%81%ae%e6%96%87%e8%a8%80","status":"publish","type":"post","link":"https:\/\/tcd-manual.net\/?p=1113","title":{"rendered":"TCD\u30c6\u30fc\u30deLAW\uff1a\u30d6\u30ed\u30b0\u8a18\u4e8b\u4e00\u89a7\u30da\u30fc\u30b8\u306e\u898b\u51fa\u3057\u300c\u30d6\u30ed\u30b0\u300d\u306e\u6587\u8a00\u3092\u5909\u66f4\u3059\u308b"},"content":{"rendered":"<h4 class=\"style_headline2\"><span>Q.<\/span>\u30d6\u30ed\u30b0\u8a18\u4e8b\u4e00\u89a7\u30da\u30fc\u30b8\u7b49\u306b\u51fa\u529b\u3055\u308c\u308b\u300c\u30d6\u30ed\u30b0\u300d\u306e\u898b\u51fa\u3057\u3092\u5909\u66f4\u3057\u305f\u3044<\/h4>\n<p>\u30d6\u30ed\u30b0\u306e\u8a18\u4e8b\u4e00\u89a7\u30da\u30fc\u30b8\u3001\u6295\u7a3f\u30da\u30fc\u30b8\u3001\u307e\u305f\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u30da\u30fc\u30b8\u306e\u898b\u51fa\u3057\u306b\u8868\u793a\u3055\u308c\u308b\u300c\u30d6\u30ed\u30b0\u300d\u306e\u5909\u66f4\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\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><b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a<\/b>header.php<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u7b87\u6240\uff1a<\/b><br \/>\n\u2460\u8a18\u4e8b\u4e00\u89a7\u30da\u30fc\u30b8\u306e\u300c\u30d6\u30ed\u30b0\u300d\u306e\u6587\u8a00\u5909\u66f4<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">      \/\/ archive page -------------------------------------------------------------------------------------------------\r\n      } elseif( (is_front_page() &amp;&amp; is_paged()) || is_search() || is_home() ) {\r\n        if(!empty($options&#x5B;'blog_archive_image'])) {\r\n          $blog_archive_image = wp_get_attachment_image_src( $options&#x5B;'blog_archive_image'], 'full' );\r\n ?&gt;\r\n &lt;div id=&quot;main_image&quot;&gt;\r\n  &lt;img src=&quot;&lt;?php echo $blog_archive_image&#x5B;0]; ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;\r\n  &lt;h2 id=&quot;main_image_headline&quot;&gt;&lt;span&gt;&lt;?php echo __('Blog', 'tcd-w'); ?&gt;&lt;\/span&gt;&lt;\/h2&gt;\r\n &lt;\/div&gt;<\/pre>\n<p>\u3000\u3000\u3000\u2193\u2193<\/p>\n<pre class=\"brush: php; highlight: [8]; title: ; notranslate\" title=\"\">      \/\/ archive page -------------------------------------------------------------------------------------------------\r\n      } elseif( (is_front_page() &amp;&amp; is_paged()) || is_search() || is_home() ) {\r\n        if(!empty($options&#x5B;'blog_archive_image'])) {\r\n          $blog_archive_image = wp_get_attachment_image_src( $options&#x5B;'blog_archive_image'], 'full' );\r\n ?&gt;\r\n &lt;div id=&quot;main_image&quot;&gt;\r\n  &lt;img src=&quot;&lt;?php echo $blog_archive_image&#x5B;0]; ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;\r\n  &lt;h2 id=&quot;main_image_headline&quot;&gt;&lt;span&gt;\u4efb\u610f\u306e\u6587\u5b57\u5217&lt;\/span&gt;&lt;\/h2&gt;\r\n &lt;\/div&gt;<\/pre>\n<p>\u2461\u8a18\u4e8b\u30da\u30fc\u30b8\u306e\u300c\u30d6\u30ed\u30b0\u300d\u306e\u6587\u8a00\u5909\u66f4<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">      \/\/ single page -------------------------------------------------------------------------------------------------\r\n\uff08\u4e2d\u7565\uff09\r\n &lt;div id=&quot;main_image&quot;&gt;\r\n  &lt;img src=&quot;&lt;?php echo $category_image&#x5B;0]; ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;\r\n  &lt;h2 id=&quot;main_image_headline&quot;&gt;&lt;span&gt;&lt;?php echo __('Blog', 'tcd-w'); ?&gt;&lt;\/span&gt;&lt;\/h2&gt;\r\n &lt;\/div&gt;\r\n &lt;?php\r\n        } elseif(!empty($options&#x5B;'blog_archive_image'])) {\r\n          $blog_archive_image = wp_get_attachment_image_src( $options&#x5B;'blog_archive_image'], 'full' );\r\n ?&gt;\r\n &lt;div id=&quot;main_image&quot;&gt;\r\n  &lt;img src=&quot;&lt;?php echo $blog_archive_image&#x5B;0]; ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;\r\n  &lt;h2 id=&quot;main_image_headline&quot;&gt;&lt;span&gt;&lt;?php echo __('Blog', 'tcd-w'); ?&gt;&lt;\/span&gt;&lt;\/h2&gt;\r\n &lt;\/div&gt;<\/pre>\n<p>\u3000\u3000\u3000\u2193\u2193<\/p>\n<pre class=\"brush: php; highlight: [13]; title: ; notranslate\" title=\"\">      \/\/ single page -------------------------------------------------------------------------------------------------\r\n\uff08\u4e2d\u7565\uff09\r\n &lt;div id=&quot;main_image&quot;&gt;\r\n  &lt;img src=&quot;&lt;?php echo $category_image&#x5B;0]; ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;\r\n  &lt;h2 id=&quot;main_image_headline&quot;&gt;&lt;span&gt;&lt;?php echo __('Blog', 'tcd-w'); ?&gt;&lt;\/span&gt;&lt;\/h2&gt;\r\n &lt;\/div&gt;\r\n &lt;?php\r\n        } elseif(!empty($options&#x5B;'blog_archive_image'])) {\r\n          $blog_archive_image = wp_get_attachment_image_src( $options&#x5B;'blog_archive_image'], 'full' );\r\n ?&gt;\r\n &lt;div id=&quot;main_image&quot;&gt;\r\n  &lt;img src=&quot;&lt;?php echo $blog_archive_image&#x5B;0]; ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;\r\n  &lt;h2 id=&quot;main_image_headline&quot;&gt;&lt;span&gt;\u4efb\u610f\u306e\u6587\u5b57\u5217&lt;\/span&gt;&lt;\/h2&gt;\r\n &lt;\/div&gt;<\/pre>\n<p>\u2462\u30ab\u30c6\u30b4\u30ea\u30fc\u3001\u6295\u7a3f\u6708\u30a2\u30fc\u30ab\u30a4\u30d6\u30da\u30fc\u30b8\u306e\u300c\u30d6\u30ed\u30b0\u300d\u306e\u6587\u8a00\u5909\u66f4<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">      \/\/ category page -------------------------------------------------------------------------------------------------\r\n\uff08\u4e2d\u7565\uff09\r\n &lt;div id=&quot;main_image&quot;&gt;\r\n  &lt;img src=&quot;&lt;?php echo $category_image&#x5B;0]; ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;\r\n  &lt;h2 id=&quot;main_image_headline&quot;&gt;&lt;span&gt;&lt;?php echo __('Blog', 'tcd-w'); ?&gt;&lt;\/span&gt;&lt;\/h2&gt;\r\n &lt;\/div&gt;\r\n &lt;?php\r\n        } elseif(!empty($options&#x5B;'blog_archive_image'])) {\r\n          $blog_archive_image = wp_get_attachment_image_src( $options&#x5B;'blog_archive_image'], 'full' );\r\n ?&gt;\r\n &lt;div id=&quot;main_image&quot;&gt;\r\n  &lt;img src=&quot;&lt;?php echo $blog_archive_image&#x5B;0]; ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;\r\n  &lt;h2 id=&quot;main_image_headline&quot;&gt;&lt;span&gt;&lt;?php echo __('Blog', 'tcd-w'); ?&gt;&lt;\/span&gt;&lt;\/h2&gt;\r\n &lt;\/div&gt;<\/pre>\n<p>\u3000\u3000\u3000\u2193\u2193<\/p>\n<pre class=\"brush: php; highlight: [13]; title: ; notranslate\" title=\"\">      \/\/ category page -------------------------------------------------------------------------------------------------\r\n\uff08\u4e2d\u7565\uff09\r\n &lt;div id=&quot;main_image&quot;&gt;\r\n  &lt;img src=&quot;&lt;?php echo $category_image&#x5B;0]; ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;\r\n  &lt;h2 id=&quot;main_image_headline&quot;&gt;&lt;span&gt;&lt;?php echo __('Blog', 'tcd-w'); ?&gt;&lt;\/span&gt;&lt;\/h2&gt;\r\n &lt;\/div&gt;\r\n &lt;?php\r\n        } elseif(!empty($options&#x5B;'blog_archive_image'])) {\r\n          $blog_archive_image = wp_get_attachment_image_src( $options&#x5B;'blog_archive_image'], 'full' );\r\n ?&gt;\r\n &lt;div id=&quot;main_image&quot;&gt;\r\n  &lt;img src=&quot;&lt;?php echo $blog_archive_image&#x5B;0]; ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;\r\n  &lt;h2 id=&quot;main_image_headline&quot;&gt;&lt;span&gt;\u4efb\u610f\u306e\u6587\u5b57\u5217&lt;\/span&gt;&lt;\/h2&gt;\r\n &lt;\/div&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"Q.\u30d6\u30ed\u30b0\u8a18\u4e8b\u4e00\u89a7\u30da\u30fc\u30b8\u7b49\u306b\u51fa\u529b\u3055\u308c\u308b\u300c\u30d6\u30ed\u30b0\u300d\u306e\u898b\u51fa\u3057\u3092\u5909\u66f4\u3057\u305f\u3044 \u30d6\u30ed\u30b0\u306e\u8a18\u4e8b\u4e00\u89a7\u30da\u30fc\u30b8\u3001\u6295\u7a3f\u30da\u30fc\u30b8\u3001\u307e\u305f\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u30da\u30fc\u30b8\u306e\u898b\u51fa\u3057\u306b\u8868\u793a\u3055\u308c\u308b\u300c\u30d6\u30ed\u30b0\u300d\u306e\u5909\u66f4\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002 A.\u4e0b\u8a18\u306ephp\u30d5\u30a1\u30a4 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128],"tags":[69,104,74,80],"class_list":["post-1113","post","type-post","status-publish","format-standard","hentry","category-tcd031","tag-archive-page","tag-category","tag-word-change","tag-80"],"_links":{"self":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/1113","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=1113"}],"version-history":[{"count":0,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/1113\/revisions"}],"wp:attachment":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}