Support » Themes and Templates » Listing all attachments from all posts on page

  • Hi folks,

    I’ve got myself tied up in knots with this one and am unable to see the wood for the trees…

    I’m looking to simply show all the attachments (this will be image thumbnails) from all the posts on a page, to use as an archive template page. The order or categorisation isn’t important at the moment.

    I am assuming the loop(s) is something like this –

    Loop (for each post) {
    Loop (for each attachment in the post) {
    write thumbnail
    }
    }

    I’m struggling trying to get this in ‘the loop’ or even if this is the correct place or approach.

    any help, code, or pointers appreciated…

  • The topic ‘Listing all attachments from all posts on page’ is closed to new replies.