{"id":12641,"date":"2023-09-26T21:56:00","date_gmt":"2023-09-26T12:56:00","guid":{"rendered":"http:\/\/tcd-manual.net\/?p=12641"},"modified":"2023-09-27T16:29:20","modified_gmt":"2023-09-27T07:29:20","slug":"tcd%e3%83%86%e3%83%bc%e3%83%9ecommon%ef%bc%9a%e5%95%86%e5%93%81%e4%b8%80%e8%a6%a7%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e8%a1%a8%e7%a4%ba%e6%95%b0%e3%82%92%e5%a2%97%e3%82%84%e3%81%97%e3%81%9f%e3%81%84","status":"publish","type":"post","link":"https:\/\/tcd-manual.net\/?p=12641","title":{"rendered":"TCD\u30c6\u30fc\u30decommon\uff1a\u5546\u54c1\u4e00\u89a7\u30da\u30fc\u30b8\u306e\u8868\u793a\u6570\u3092\u5897\u3084\u3057\u305f\u3044"},"content":{"rendered":"<h2 class=\"styled_h2\">Q.\u8cea\u554f\u5185\u5bb9<\/h2>\n<p>\u30fb\u30c6\u30fc\u30de\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3082\u300c1\u30da\u30fc\u30b8\u306b\u8868\u793a\u3059\u308b\u5546\u54c1\u6570\u300d\u3092\u5897\u3084\u305b\u307e\u3059\u304c\u3001\u4e0a\u9650\u306e15\u4ef6\u3088\u308a\u3082\u3063\u3068\u5897\u3084\u3057\u305f\u3044\u3067\u3059\u3002<br \/>\n\u30fb\u5546\u54c1\u4e00\u89a7\u30da\u30fc\u30b8\u306e\u8868\u793a\u6570\u3092\u306a\u308b\u3079\u304f\u5897\u3084\u3057\u3066\u3001\u30da\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u308f\u306a\u3044\u3067\u898b\u305b\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u25bc\u5909\u66f4\u7b87\u6240\u30a4\u30e1\u30fc\u30b8 <a href=\"https:\/\/demo.tcd-theme.com\/tcd097\/shop\/\">\u30c7\u30e2\u30b5\u30a4\u30c8\u306e\u5546\u54c1\u4e00\u89a7\u30da\u30fc\u30b8<\/a><br \/>\n<img decoding=\"async\" class=\"frame\" src=\"https:\/\/tcd-manual.net\/wp-content\/uploads\/2023\/09\/common.jpeg\" alt=\"\u5909\u66f4\u7b87\u6240\u30a4\u30e1\u30fc\u30b8\" \/><\/p>\n<p class=\"styled_h2\">A.\u4e0b\u8a18\u306e\u65b9\u6cd5\u3067\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4e0b\u8a18\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3092\u3057\u3066\u3044\u305f\u3060\u304f\u3053\u3068\u3067\u3001\u5546\u54c1\u4e00\u89a7\u30da\u30fc\u30b8\u306e\u8868\u793a\u6570\u3092\u5897\u3084\u3059\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a<\/b>\u3000wc\/common.php<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u7b87\u6240\uff1a<\/b>\u3000114\u884c\u76ee\u3001116\u884c\u76ee\u4ed8\u8fd1<\/p>\n<pre class=\"brush: php; highlight: [9,11]; title: ; notranslate\" title=\"\">\r\n\/**\r\n * WooCommerce \u4e00\u89a7\u8868\u793a\u4ef6\u6570\u30d5\u30a3\u30eb\u30bf\u30fc\r\n *\/\r\nfunction tcd_woocommerce_loop_shop_per_page( $loop_shop_per_page ) {\r\n\t\r\n\t$dp_options = get_design_plus_option();\r\n\r\n\tif ( wp_is_mobile() ) {\r\n\t\t$product_archive_num = is_numeric( $dp_options&#x5B;'product_archive_num_sp'] ) ? absint( $dp_options&#x5B;'product_archive_num_sp'] ) : 12;\r\n\t} else {\r\n\t\t$product_archive_num = is_numeric( $dp_options&#x5B;'product_archive_num'] ) ? absint( $dp_options&#x5B;'product_archive_num'] ) : 12;\r\n\t}\r\n\treturn $product_archive_num;\r\n}\r\nadd_filter( 'loop_shop_per_page', 'tcd_woocommerce_loop_shop_per_page', 10 );\r\n<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: php; highlight: [9,11]; title: ; notranslate\" title=\"\">\r\n\/**\r\n * WooCommerce \u4e00\u89a7\u8868\u793a\u4ef6\u6570\u30d5\u30a3\u30eb\u30bf\u30fc\r\n *\/\r\nfunction tcd_woocommerce_loop_shop_per_page( $loop_shop_per_page ) {\r\n\t\r\n\t$dp_options = get_design_plus_option();\r\n\r\n\tif ( wp_is_mobile() ) {\r\n\t\t$product_archive_num = 24; \/* \u30b9\u30de\u30db\u306e\u8868\u793a\u6570 **\/\r\n\t} else {\r\n\t\t$product_archive_num = 36; \/* PC\u306e\u8868\u793a\u6570 **\/\r\n\t}\r\n\treturn $product_archive_num;\r\n}\r\nadd_filter( 'loop_shop_per_page', 'tcd_woocommerce_loop_shop_per_page', 10 );\r\n<\/pre>\n<p>\u4e0a\u8a18\u8a18\u8ff0\u306f\u3001\u30b9\u30de\u30db\u6642\u306f24\u8a18\u4e8b\u3001PC\u6642\u306f36\u8a18\u4e8b\u8868\u793a\u3055\u305b\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u8868\u793a\u6570\u304c\u3042\u307e\u308a\u306b\u3082\u591a\u3044\u3068\u3001\u30b5\u30a4\u30c8\u304c\u91cd\u304f\u611f\u3058\u308b\u5834\u5408\u3082\u3054\u3056\u3044\u307e\u3059\u3002\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Q.\u8cea\u554f\u5185\u5bb9 \u30fb\u30c6\u30fc\u30de\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3082\u300c1\u30da\u30fc\u30b8\u306b\u8868\u793a\u3059\u308b\u5546\u54c1\u6570\u300d\u3092\u5897\u3084\u305b\u307e\u3059\u304c\u3001\u4e0a\u9650\u306e15\u4ef6\u3088\u308a\u3082\u3063\u3068\u5897\u3084\u3057\u305f\u3044\u3067\u3059\u3002 \u30fb\u5546\u54c1\u4e00\u89a7\u30da\u30fc\u30b8\u306e\u8868\u793a\u6570\u3092\u306a\u308b\u3079\u304f\u5897\u3084\u3057\u3066\u3001\u30da\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u308f\u306a\u3044\u3067\u898b\u305b\u305f\u3044\u3067\u3059\u3002 \u25bc\u5909\u66f4\u7b87\u6240\u30a4\u30e1\u30fc\u30b8 [&hellip;]","protected":false},"author":21,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[862],"tags":[270,822],"class_list":["post-12641","post","type-post","status-publish","format-standard","hentry","category-tcd097","tag-270","tag-822"],"_links":{"self":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/12641","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\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12641"}],"version-history":[{"count":0,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/12641\/revisions"}],"wp:attachment":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}