{"id":10505,"date":"2022-05-12T10:54:25","date_gmt":"2022-05-12T02:54:25","guid":{"rendered":"https:\/\/blog.naibabiji.com\/?p=10505"},"modified":"2022-05-12T10:54:25","modified_gmt":"2022-05-12T02:54:25","slug":"change-number-product-gallery","status":"publish","type":"post","link":"https:\/\/blog.naibabiji.com\/woocommerce\/change-number-product-gallery.html","title":{"rendered":"\u4fee\u6539WooCommerce\u4ea7\u54c1\u56fe\u518c\u7684\u56fe\u7247\u6570\u91cf"},"content":{"rendered":"<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0bWordPress\u4f7f\u7528WooCommerce\u4f20\u4ea7\u54c1\uff0c\u4ea7\u54c1\u76f8\u518c\u662f\u5c55\u793a4\u5f20\u56fe\uff0c\u5982\u679c\u60f3\u8981\u5728\u4e00\u6392\u5c55\u793a\u66f4\u591a\u6570\u91cf\u7684\u4ea7\u54c1\u56fe\u7247\uff0c\u53ef\u4ee5\u5728\u4e3b\u9898\u51fd\u6570\u6587\u4ef6\u91cc\u9762\u6dfb\u52a0\u4e0b\u9762\u7684\u4ee3\u7801\u5b9e\u73b0\u3002<\/p>\n<pre>\/\/ \u8c03\u6574\u4ea7\u54c1\u56fe\u518c\u5355\u6392\u5c55\u793a\u6570\u91cf\r\nadd_filter( 'woocommerce_product_thumbnails_columns', create_function( '', 'return 4;' ) );<\/pre>\n<p>\u628a\u4e0a\u9762\u4ee3\u7801\u4e2d\u76844\u6539\u6210\u4f60\u60f3\u8981\u5c55\u793a\u7684\u56fe\u7247\u6570\u91cf\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u4fee\u6539\u5b8c\u6bd5\u4e4b\u540e\u53ef\u80fd\u4e0d\u540c\u7684\u4e3b\u9898\u8fd8\u9700\u8981\u4fee\u6539\u4e00\u4e0bcss\u6837\u5f0f\uff0c\u8fd9\u4e2a\u5c31\u6ca1\u6709\u516c\u7528\u7684\u4ee3\u7801\u4e86\uff0c\u9700\u8981\u6839\u636e\u81ea\u5df1\u7f51\u7ad9\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\u3002<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;10505&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;15&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;2.5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;\u7ed9\u672c\u6587\u6253\u5206 post&quot;,&quot;legend&quot;:&quot;2.5\\\/5 - (15 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u4fee\u6539WooCommerce\u4ea7\u54c1\u56fe\u518c\u7684\u56fe\u7247\u6570\u91cf&quot;,&quot;width&quot;:&quot;68&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 68px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            2.5\/5 - (15 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0bWordPress\u4f7f\u7528WooCommerce\u4f20\u4ea7\u54c1\uff0c\u4ea7\u54c1\u76f8\u518c\u662f\u5c55\u793a4\u5f20\u56fe\uff0c\u5982\u679c\u60f3\u8981\u5728\u4e00\u6392\u5c55\u793a\u66f4\u591a\u6570\u91cf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"\u4fee\u6539WooCommerce\u4ea7\u54c1\u56fe\u518c\u7684\u56fe\u7247\u6570\u91cf - \u5976\u7238\u5efa\u7ad9\u7b14\u8bb0","description":"\u9ed8\u8ba4\u60c5\u51b5\u4e0bWordPress\u4f7f\u7528WooCommerce\u4f20\u4ea7\u54c1\uff0c\u4ea7\u54c1\u76f8\u518c\u662f\u5c55\u793a4\u5f20\u56fe\uff0c\u5982\u679c\u60f3\u8981\u5728\u4e00\u6392\u5c55\u793a\u66f4\u591a\u6570\u91cf\u7684\u4ea7\u54c1\u56fe\u7247\uff0c\u53ef\u4ee5\u5728\u4e3b\u9898\u51fd\u6570\u6587\u4ef6\u91cc\u9762\u6dfb\u52a0\u4e0b\u9762\u7684\u4ee3\u7801\u5b9e\u73b0\u3002 \u628a\u4e0a\u9762\u4ee3\u7801\u4e2d\u76844\u6539\u6210\u4f60\u60f3\u8981\u5c55\u793a\u7684\u56fe\u7247\u6570\u91cf\u5c31\u884c\u4e86\u3002 \u4fee\u6539\u5b8c\u6bd5\u4e4b\u540e\u53ef\u80fd\u4e0d\u540c\u7684\u4e3b\u9898\u8fd8\u9700\u8981\u4fee\u6539\u4e00\u4e0bcss\u6837\u5f0f\uff0c\u8fd9\u4e2a\u5c31\u6ca1\u6709\u516c\u7528\u7684\u4ee3\u7801\u4e86\uff0c\u9700\u8981\u6839\u636e\u81ea\u5df1\u7f51\u7ad9\u5b9e\u9645\u60c5\u51b5\u8c03\u6574"},"footnotes":""},"categories":[405],"tags":[],"class_list":["post-10505","post","type-post","status-publish","format-standard","hentry","category-woocommerce"],"_links":{"self":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/10505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/comments?post=10505"}],"version-history":[{"count":0,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/10505\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media?parent=10505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/categories?post=10505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/tags?post=10505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}