diff --git a/classes/class-get-portfolio.php b/classes/class-get-portfolio.php index 24eb883c..ab1ad149 100644 --- a/classes/class-get-portfolio.php +++ b/classes/class-get-portfolio.php @@ -1427,6 +1427,10 @@ public static function get_query_params( $options, $for_filter = false, $layout_ case 'image_caption': case 'image_alt': case 'image_description': + if ( 'date' === $custom_order ) { + $custom_order = 'published_time'; + } + /** * We've reworked this code to work correctly with empty sortable values. * Now images with filled values ​​will be sorted first.