I have a post that contain images, let's say image with id 19, 12, 10. I attach image 19 first, 12 below the first and 10 as the last, and I need to retrieve them. I
$post_images = get_children( array(
'post_parent' => $id,
'post_status' => 'inherit',
'post_type' => 'attachment',
'post_mime_type' => 'image',
));
But i receive them sorted by id (10,12,19), how i get them with the order as i needed