Querying Data in Correct Order
-
Hi Support,
I’m trying to query the gallery images in the order that they are set in the backend, however my query does not pull the images in the correct order. Could you advise on how to alter my query to achieve this?
Thanks
` $images = get_children( array(
‘orderby’ => ‘menu_order’,
‘post_type’ => ‘attachment’,
‘post_parent’ => $post->ID,
‘post_mime_type’ => ‘image’,
‘post_status’ => null,
‘numberposts’ => -1,
) );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Querying Data in Correct Order’ is closed to new replies.