woocommerce 产品 orderby ID 与自定义订单(不是 ASC 或 DESC) [英] woocommerce product orderby ID with custom order(Not ASC OR DESC)

查看:22
本文介绍了woocommerce 产品 orderby ID 与自定义订单(不是 ASC 或 DESC)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用过简码'[products ids="1,3,2" orderby="ID"]'获取 id 为 1,3,2 的产品.在页面显示中,产品显示为3,2,1,如果使用order参数,则以ASC顺序或DESC顺序显示.但我的订单应该是 1,3,2.我怎样才能实现它.

i have used shortcode '[products ids="1,3,2" orderby="ID"]' to get the products with id 1,3,2. on page display, product showing as 3,2,1 if using order parameter it will display in ASC order or DESC order. but my order should be 1,3,2. how can i achieve it.

提前致谢.

推荐答案

试试这个:

[products ids="1,3,2" orderby="menu_order"]

那就试试order属性

Then try the order attribute

这篇关于woocommerce 产品 orderby ID 与自定义订单(不是 ASC 或 DESC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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