• In version 2.0 handling uoloads was a little bit different from 2.1. Here is my experience.
    Given: several pictures, uploaded the same day, and with the same title. The first of this pictures is put as a thumbnail in the post with the “Attachement” option. What happens when you click that thumbnail is that a page opens with all the pictures with the same title.

    Here you can see for yourself.

    Click the thumbnail and a page will open with several pictures. It is the WordPress loop that builds the list and display the page.

    Now I’ve tried to repeat this neat trick on another site, built with 2.1. But it doesn’t work the same way. Only one picture is showed. Now I wonder if there is some trick in 2.1 to have the loop get all the pictures with the same title.

    It would be extremely handy to do it this way also in 2.1. You can use it to set up a simple photo gallery.

    Anyone know the trick?
    /EGW

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter erniew

    (@erniew)

    Here is my theory:

    In the older version of upload, if you assigned the same title to several pictures, all of them really was uploaded with the identical title. And thus considered belonging to be part of the same loop.

    The new upload seems to consider it your misstake if you assign the same title to several pictures. So it helpfully ad a serial number to the title, if there are several pictures with the same title. Alas, then they are forever separated and can only be accessed by the complete title, including the serial number.

    So a neat and efficient feature is this way destroyed.

    In spite of this, I would be extremely grateful, if some experienced WordPress user have some idea on a workaround.

    /EGW

    Thread Starter erniew

    (@erniew)

    Further investigation

    I would have preferred to re-edit my original question, but for the moment I don’t know how to do that. So I make my question a little bit more precise instead.

    My theory, posted as a first reply, says that the problem is WordPress adds a serial number to the picture title, if there are several pictures with the same title. Now, that is not really the case. What happens is that WordPress creates a post name = the picture title. If there is more than one post with the same title, then WordPress adds the serial number to the post name of the pictures following number one. If I use mysqladmin to set the post names of the following pictures to the post title too (every picture with the same post title get the same post name), then all the pictures will be recognized by the WordPress loop as belonging to the same post, and so all the pictures will be showed in the attachement. Wich is exactly what I want.

    It is akward to have to go to mysqladmin to adjust the post names. I would prefer a workaround to the hassle with the post name, so that allways when I upload a picture, the post name will be identical to the post title, regardless of if there are more pictures with this title.

    I hope that my question is clear an comprehensivie, and that somwhere out there in this must generous community somebody will look at it and provide me with some hint on how to have it this way ??

    /EGW

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The loop and attached pictures’ is closed to new replies.