How can I filter the attachments (images) of a post by menu_order? I want to get all the images with menu_order > 0. At the moment I'm using the following code:
$attachments = get_children( array('post_parent' => $post->ID, 'numberposts' => 0, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') );
Adding 'menu_order' => '>0' to the arguments array didn't work. I also tried to use the posts_where filter, but it didn't work either. Any idea how to get this work?
Thanks for your help!