WordPress.org

Ready to get started?Download WordPress

Forums

How to display all photos uploaded to a post via template tag? (6 posts)

  1. jaacob
    Member
    Posted 7 years ago #

    I'm trying to avoid forcing my client to go through the "Send to Editor" each time they upload an image to a post -- instead, I'd like to just set something up in the template that automatically pulls in all of the photos associated/uploaded to the post and shows them in full-size.

    Then I'll control the display of the image via CSS. (They've been shown not to use gigantic images, etc.)

    Is this possible? I've been using Kaf's Post Image plugin to pull in a single image to start the post off, but at the bottom of each post, I want to dump all of the uploaded photos, and that plugin doesn't handle multiple images.

  2. Ryan Fitzer
    Member
    Posted 7 years ago #

    Great idea. I would like to see this as well.

  3. Kafkaesqui

    Posted 7 years ago #

    Hmm. I'll look at my plugin and see about allowing all image attachments to be displayed.

    How much control over the css elements would be needed here? Would it be preferred that the plugin just dump it all out in the basic img tags, or have these blocked in separate <div>s?

  4. Ryan Fitzer
    Member
    Posted 7 years ago #

    I vote for separate divs. It makes it much easier to style them as centered blocks like so (scroll down).

  5. jaacob
    Member
    Posted 7 years ago #

    Kaf: +1 for separate divs as well -- it might make for some extraneous code, but the styling would be so much easier. Thanks for looking into that -- your original plugin was a lifesaver for this project.

  6. 3stripe
    Member
    Posted 7 years ago #

    Did you get anywhere with this Kaf? Sounds sweet!

    I've been surfing all of the post/image threads on here and none of them seem to address the issue of multiple image attachments yet.

Topic Closed

This topic has been closed to new replies.

About this Topic