How to query images from a post to use in a slider
Your second arg “p = 107” isn’t valid. What you could try is the get_attached_media() function. And do something like this: $media = get_attached_media(‘image’, 2360); foreach ($media as $m) { echo ‘<li>’; echo wp_get_attachment_image( $m->ID, ‘home-slider’ ); echo ‘</li>’; }