custom_params['orderBy'] ?? null; // Normalize lowercase 'id' to uppercase 'ID' for WP_Query compatibility. // WP_Query is case-sensitive and only recognizes 'ID' (uppercase). $this->custom_args['orderby'] = ( 'id' === $order_by ) ? 'ID' : $order_by; } }