Woocommerce - 显示销售产品的 1 页而不是 4 页 [英] Woocommerce - Showing 1 page instead of 4 pages for products on sale

查看:62
本文介绍了Woocommerce - 显示销售产品的 1 页而不是 4 页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 44 种产品在打折,当我输入 WooCommerce 短代码时

I've got 44 products on sale, and when I put WooCommerce shortcodes

[sale_products per_page="12"]

我只出售 12 种产品,即 1 页而不是 4 页.

I'm getting only 12 products on sale, i.e. 1 page instead of 4 pages.

怎么了?

我正在使用:可湿性粉剂 4.4.1,WC 2.5.1,神秘主题.

I'm using: WP 4.4.1, WC 2.5.1, Mystile theme.

推荐答案

查看 部分/document/woocommerce-shortcodes/" rel="nofollow">文档,它指出:

Look at "The ‘per_page’ Argument" section on the documentation, it states:

请注意:per_page"短代码参数将决定页面上显示的产品数量.这不会在短代码中添加分页.

Please note: the ‘per_page’ shortcode argument will determine how many products are shown on a page. This will not add pagination to the shortcode.

这篇关于Woocommerce - 显示销售产品的 1 页而不是 4 页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆