1

In my woocommerce store I have a Sale Products page. In this page I use the shortcode to display the products on sale

[sale_products per_page="40" columns="3"]

In the store the products are ordered according to their position in a list in the backend (accessible via the Products->sort products link). This sorts them on normal category pages but on a shortcode page they are sorted by title. I know there is an orderby attribute I can add but is there an argument that will achieve this?

2

You can try to order by menu_order like this:

[sale_products per_page="40" columns="3" orderby="menu_order"]

if the corresponding callback is using WP_Query() to query the products.

  • 1
    There is a documentation for Woocommerce Shortcodes. Available args are listed for each shortcode, the [sale_products] shortcode has: per_page, columns, orderby and order. @harryg – Nicolai Oct 31 '13 at 17:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.