Hi,
Sorry meta keys ordering is not available in the plugin feature yet. I would consider this adding in future version.
As a workaround please select both keys in WPES setting then add the following code in functions.php and disable the ordering feature in WPES settings.
add_action('pre_get_posts', 'wpes_support_topic_set_secondary_sorting', 501);
function wpes_support_topic_set_secondary_sorting($query) {
if (!empty($query->is_search)) {
$query->set( 'orderby', array(
'_sku' => 'ASC',
'wpcf-serie' => 'ASC'
));
}
}
This should work.
Thanks
-
This reply was modified 6 years, 7 months ago by
Sumit Singh.
Thread Starter
coholm
(@coholm)
Thank you so much. This worked perfectly.
(I also had to add the code from one of your previous replies to make _sku visible: https://ww.wp.xz.cn/support/topic/search-hidden-meta_keys-with-_underscore/)
-
This reply was modified 6 years, 7 months ago by
coholm.
-
This reply was modified 6 years, 7 months ago by
coholm.