Compare custom field values

Instead of storing your values as “5 hours 13 minutes” instead store them as timestamps, e.g. 5:13 for 5h 13m This way you can use the date/time comparator operations to answer questions E.g. to get items under 5 hours and 30 minutes: $args = [ … ‘meta_query’ => [ [ ‘meta_key’ => ‘time’, ‘meta_value’ => … Read more