wordpress $query->set to sort archive product pages, by *manipulated* ACF meta key value
I am trying to use the pre_get_posts action hook to sort products by ACF field for archive product pages. The ACF field is a string, that contains characters and numeric value My solution: to add missing leading zero's so that…