OrderBy Not Working on Categories
-
We’re using a custom query in an Elementor Loop Grid to display subcategories categories on this page: https://greatcanvasarts.com/rooms/
We want them to sort in the order you see here (the default WooCommerce display functionality subcategories of a category): https://greatcanvasarts.com/product-category/rooms/
We need them to sort by the WooCommerce Category Order field. You can set this in the WooCommerce > Products > Categories admin by dragging and dropping the order of categories. In the DB, this value is recorded in wp_termmeta with meta_key “order” as a “meta_value” of the sort order.
The default Loop Grid only supports sorting by category name or ID. When using Advanced Queries plugin, we try setting “Dynamic OrderBy Field” to “order” or “order_posts” (the apparent default) and it does not display in correct order.
This is frustrating because if you simply navigate to the category page for “rooms” in this example, you’ll see they are ordered correctly.
What do we need to do to display or queried categories in order as WooCommerce does on it’s default category pages?
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.