• Hi there,

    Is there a way to fetch the latest 6 images uploaded to a wordpress gallery post?

    I would like to display the most recent image uploads on my frontpage (template) and then have the images there set as links to the gallery post.

    I tried a general <?php echo get_attachment_icon($post->ID); ?> but obviously that does not display images from the gallery which are in a different url (folder) to the other images.

    Any help would be appreciated, thank you!

  • The topic ‘query images from wordpress gallery post format’ is closed to new replies.