This topic has 4 replies, 2 voices, and was last updated 8 years, 1 months ago ago by Eva Kemp
Hi,
out developer provided another fix. Would you please pass that on to the developers for further evalution?
Till wrote:
— snip —
others have asked for ways to specify product ordering in
etheme_products shortcode:
https://www.8theme.com/topic/woocommerce-products-grid-from-vc-does-not-honor-menu_order-sort/
https://www.8theme.com/topic/etheme_products-shortcode-question-suggestion-regarding-order-by/
https://www.8theme.com/topic/etheme_products-use-order-specified-in-list/
i have implemented this feature in the following diff. please consider
adding it to legenda.
it will default to using menu_order but any valid ordering can be
specified in the shortcode attributes.
— snap —
--- themes/legenda/framework/shortcodes.php 2015-12-23 14:46:16.000000000 +0100
+++ themes/legenda-till/framework/shortcodes.php 2016-02-25 15:14:38.526808044 +0100
@@ -398,6 +398,8 @@
'columns' => 4,
'shop_link' => 1,
'limit' => 20,
+ 'orderby' => 'menu_order',
+ 'order' => 'ASC',
'categories' => '',
'block_id' => false,
'type' => 'slider',
@@ -416,6 +418,8 @@
'ignore_sticky_posts' => 1,
'no_found_rows' => 1,
'posts_per_page' => $limit,
+ 'orderby' => $orderby,
+ 'order' => $order,
'meta_query' => array(
array(
'key' => '_visibility',
Best regards
Hello,
We’ve forwarded your fix to the developers.
Thank you for letting us know.
We’ll take this into account.
Regards,
Eva Kemp.
Thanks!
Best regards
Hello,
You’re welcome.
Regards,
Eva Kemp.
You must be logged in to reply to this topic.Log in/Sign up