• [gallery id="1"] only specifies the post id.

    What if I have 3 posts and 3 galleries? Now there are nine permutations, assuming only one gallery per post. i.e.

    post 1 with gallery 1, 2, or 3
    post 2 with gallery 1, 2, or 3
    post 3 with gallery 1, 2, or 3

    How do I specify which gallery should be displayed in a particular post?

    Thanks – rev

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter revnice

    (@revnice)

    I’ve read that but I don’t understand much of it. I’ve tried [gallery] but I get ‘gallery not found.’

    I can’t find a list of post ids so I don’t even know what to put for id=

    Are successive posts assigned a number that increments with each new post or what?

    Even if I knew the post id, I don’t know how to specify the gallery associated with it and your link only appears to discuss gallery parameters.

    Thread Starter revnice

    (@revnice)

    esmi:

    I haven’t read it all yet but that looks as if it’s really going to be helpful! Thanks.

    Strange that Post ID isn’t listed in a column on the page that displays all the posts, that seems like a no-brainer considering how important that info could be to some people.

    I’m using WordPress to make a conventional site (not a blog or forum) so my ‘Posts’ are really menu items whose links take you to properties for sale. It’s critical that I show the right properties under the right links ??

    The post ids were removed from the Admin display a few WP versions back. However, there are some plugins that add this functionality back into the Admin area if you need it.

    Thread Starter revnice

    (@revnice)

    Remove it from the display, then add a plug-in – love it!

    Press Enter to Exit!

    Thread Starter revnice

    (@revnice)

    [gallery id="1"] only specifies the post id.

    I found the Post ID using esmi’s mousover method, now – how do I identify the correct gallery?

    While awaiting responses, I’ll try mousing over the gallery but I have a feeling that would be too easy ??

    how do I identify the correct gallery?

    The correct gallery for what? Galleries are just lists of images – each image in a given gallery being associated with the same post. That post can be referenced by its id. Galleries do not have ids. Posts & Pages have ids. The images that are uploaded to a post are classified as attachments of that post. A Gallery is a list of the attachments.

    Thread Starter revnice

    (@revnice)

    esmi:

    Just in case terminology is getting in the way:

    If three people have to wear a specific hat, you must know both the names of the people and the types of the hats.

    As mentioned, my ‘Posts’ are really menu items whose links take you to properties for sale, so I must show the correct collection of images for each ‘Post.’

    rev

    Thread Starter revnice

    (@revnice)

    Ah!

    If I use [gallery id="123"] I get ‘gallery not found.’

    If I use your mouseover trick in the Manage Galleries view, I find the gallery is called ‘nggallery’ which must be a system assigned name because I didn’t name it that.

    Now [nggallery id=”123″] works perfectly.

    I’m glowing with success.

    Thread Starter revnice

    (@revnice)

    “Galleries do not have ids.”

    Just found a Gallery ID column with numbers in it in the Manage Galleries view.

    Thread Starter revnice

    (@revnice)

    Curiously, this also worked for me, where 4 is the ID of the gallery, not the post!

    [nggallery id=”4″]

    Thread Starter revnice

    (@revnice)

    esmi:

    This is it: [nggallery id=”4″]

    Where 4 is the ID of the gallery, not the post.

    WordPress doesn’t need the post ID because I’m entering the shortcode in the post itself. Specifying the gallery ID makes sure I get the right collection of pictures.

    Apologies for the confusion, I’m a novice.

    Thanks for your help!

    rev

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How do I specify the gallery/post association?’ is closed to new replies.