Skip Navigation

WooCommerce product archive sorting broken whenever secondary sorting added

Open

Symptoms

A custom archive for WC products can set sorting options, and includes primary and secondary sorting priorities (e.g. sort by menu_order then by post title).

It works when setting only a primary sort option, but breaks (entirely) when adding a secondary option.

Other archives (e.g. custom post type archives) are unaffected, only products experience this problem.

Workaround

Currently, it is not possible to add a second sorting option for WC products in archives.

2 thought on WooCommerce product archive sorting broken whenever secondary sorting added

Leave
a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>