{"id":278,"date":"2016-01-21T16:56:39","date_gmt":"2016-01-21T07:56:39","guid":{"rendered":"http:\/\/tcd-manual.net\/?p=278"},"modified":"2019-08-02T17:34:12","modified_gmt":"2019-08-02T08:34:12","slug":"%e5%95%86%e5%93%81%e7%94%bb%e5%83%8f%e3%82%b5%e3%82%a4%e3%82%ba%e3%81%ae%e8%aa%bf%e6%95%b4","status":"publish","type":"post","link":"https:\/\/tcd-manual.net\/?p=278","title":{"rendered":"TCD\u30c6\u30fc\u30dePrecious\uff1a\u5546\u54c1\u753b\u50cf\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h4 class=\"style_headline2\"><span>Q.<\/span>\u81ea\u52d5\u30ea\u30b5\u30a4\u30ba\u3055\u308c\u308b\u5546\u54c1\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u304b\uff1f<\/h4>\n<p>\u300cPrecious (TCD019)\u300d\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u6271\u3046\u5546\u54c1\u306e\u95a2\u4fc2\u4e0a\u3001\u5546\u54c1\u5199\u771f\u3092\u7e26\u9577\u306b\u5909\u66f4\u3057\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u969b\u3001\u30c8\u30ea\u30df\u30f3\u30b0\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u56f0\u3063\u3066\u3044\u307e\u3059\u3002\u5199\u771f\u3092\u7e26\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<blockquote><p>\u4e0b\u8a18\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u5185\u5bb9\u306f\u3001<span style=\"color:red;font-weight:bold;\">\u65e2\u306b\u6295\u7a3f\u3057\u305f\u8a18\u4e8b\u306b\u306f\u53cd\u6620\u3055\u308c\u307e\u305b\u3093\u3002<\/span><br \/>\n\u65e2\u306b\u6295\u7a3f\u3055\u308c\u305f\u8a18\u4e8b\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u5185\u5bb9\u3092\u53cd\u6620\u3055\u305b\u308b\u306b\u306f\u3001\u753b\u50cf\u3092\u518d\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3054\u3056\u3044\u307e\u3059\u3002<\/p><\/blockquote>\n<h4 class=\"style_headline2\"><span>A.<\/span>\u4e0b\u8a18\u30d5\u30a1\u30a4\u30eb\u306e\u8a72\u5f53\u7b87\u6240\u3092\u7de8\u96c6\u3057\u307e\u3059<\/h4>\n<p>\u2460<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a<\/b>functions.php<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u7b87\u6240\uff1a<\/b><\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">  add_image_size( 'size4', 575, 380, true );<\/pre>\n<p>\u3000\u3000\u3000\u3000\u2193<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">  add_image_size( 'size4', 575, \u4efb\u610f\u306e\u6570\u5024, false );<\/pre>\n<p>\u2461<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a<\/b>style_pc.css<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u7b87\u6240\uff1a<\/b><\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">#product_image_slider { width:575px; height:380px; margin:; overflow:hidden; }\r\n#product_image_slider img { width:575px; height:380px; }<\/pre>\n<p>\u203b\u4e0a\u8a182\u304b\u6240\u306e\u300cheight\u300d\u306e\u5024\u3092\u2460\u3067\u5909\u66f4\u3057\u305f\u5024\u306b\u3054\u5909\u66f4\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u2462<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a<\/b>single-product.php<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u7b87\u6240\uff1a<\/b><\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">  &lt;div id=&quot;product_image_slider&quot;&gt;\r\n   &lt;?php if (!empty($custom_fields&#x5B;'product_image1']&#x5B;0])) { ?&gt;&lt;img src=&quot;&lt;?php echo $image1&#x5B;0]; ?&gt;&quot; width=&quot;575&quot; height=&quot;380&quot; alt=&quot;&quot; title=&quot;&quot; data-thumb=&quot;&lt;?php echo $image1_2&#x5B;0]; ?&gt;&quot; \/&gt;&lt;?php }; ?&gt;\r\n   &lt;?php if (!empty($custom_fields&#x5B;'product_image2']&#x5B;0])) { ?&gt;&lt;img src=&quot;&lt;?php echo $image2&#x5B;0]; ?&gt;&quot; width=&quot;575&quot; height=&quot;380&quot; alt=&quot;&quot; title=&quot;&quot; data-thumb=&quot;&lt;?php echo $image2_2&#x5B;0]; ?&gt;&quot; \/&gt;&lt;?php }; ?&gt;\r\n   &lt;?php if (!empty($custom_fields&#x5B;'product_image3']&#x5B;0])) { ?&gt;&lt;img src=&quot;&lt;?php echo $image3&#x5B;0]; ?&gt;&quot; width=&quot;575&quot; height=&quot;380&quot; alt=&quot;&quot; title=&quot;&quot; data-thumb=&quot;&lt;?php echo $image3_2&#x5B;0]; ?&gt;&quot; \/&gt;&lt;?php }; ?&gt;\r\n  &lt;\/div&gt;\r\n &lt;\/div&gt;\r\n &lt;?php } elseif(!empty($custom_fields&#x5B;'product_image1']&#x5B;0])) { ?&gt;\r\n &lt;div id=&quot;product_image&quot;&gt;\r\n  &lt;?php if (!empty($custom_fields&#x5B;'product_image1']&#x5B;0])) { ?&gt;&lt;img src=&quot;&lt;?php echo $image1&#x5B;0]; ?&gt;&quot; width=&quot;575&quot; height=&quot;380&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;&lt;?php }; ?&gt;\r\n &lt;\/div&gt;<\/pre>\n<p>\u203b\u4e0a\u8a18\u7b87\u6240\u306b\u542b\u307e\u308c\u308b\u300cheight=&#8221;380&#8243;\u300d\u3068\u3044\u3046\u90e8\u5206\u306e\u6570\u5024\u3092\u2460\u3067\u5909\u66f4\u3057\u305f\u5024\u306b\u3054\u5909\u66f4\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4e0a\u8a18\u3067\u3054\u6848\u5185\u3057\u3066\u3044\u308b\u5185\u5bb9\u306f\u3001\u6a2a\u5e45\uff08575px\uff09\u306b\u3064\u3044\u3066\u306f\u5909\u66f4\u3057\u3066\u304a\u308a\u307e\u305b\u3093\u3002\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u95a2\u4fc2\u4e0a\u3001\u6a2a\u5e45\u3092\u5909\u66f4\u3059\u308b\u3068\u8868\u793a\u304c\u5927\u304d\u304f\u5d29\u308c\u308b\u53ef\u80fd\u6027\u304c\u3054\u3056\u3044\u307e\u3059\u306e\u3067\u6a2a\u5e45\u306b\u3064\u3044\u3066\u306f\u5909\u66f4\u3055\u308c\u306a\u3044\u3053\u3068\u3092\u304a\u52e7\u3081\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Q.\u81ea\u52d5\u30ea\u30b5\u30a4\u30ba\u3055\u308c\u308b\u5546\u54c1\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u304b\uff1f \u300cPrecious (TCD019)\u300d\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u6271\u3046\u5546\u54c1\u306e\u95a2\u4fc2\u4e0a\u3001\u5546\u54c1\u5199\u771f\u3092\u7e26\u9577\u306b\u5909\u66f4\u3057\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u969b\u3001\u30c8\u30ea\u30df\u30f3\u30b0\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[93,111,55],"class_list":["post-278","post","type-post","status-publish","format-standard","hentry","category-tcd019","tag-product-page","tag-111","tag-height"],"_links":{"self":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/278","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=278"}],"version-history":[{"count":0,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/278\/revisions"}],"wp:attachment":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}