Hi @simtwo
The acf/load_value
hook doesn’t have the field name yet, so you need to use the field key instead. Also, you need to convert the returned date to timestamp by using the strtotime()
function so you can sort it easily. Could you please try the following code?
foreach( $value as $i => $row ) {
$order[ $i ] = strtotime($row['field_1234567890abc']);
}
Where ‘field_1234567890abc’ is the field key.
I hope this helps 🙂