Need help? Check out our Support site, then


Automatic way to include images attached to a lot of posts in a gallery

  1. I am trying to make a gallery page and I want to show all pictures from Media Library. All images are attached to different posts, so when I use: [gallery id=all], it doesn't show anything.

    I have many posts, so I can't put all IDs from all posts one by one.
    Is there any way to show all pictures from different posts in a single gallery?
    Or how can I get all IDs in a fast way?

    Thanks!
    Blog url: http://napbuf.wordpress.com/

  2. The WordPress Gallery feature by design attaches photos in a Gallery to the specific post or page where they were uploaded. If you want to include on a special page all the photos that have previously appeared in a Gallery, you will have to use "includes" with the image ID number or use the post ID number.

    There's no "fast way" to get these numbers. You have to hover your mouse over the post or image and note the ID number in your browser's status bar.

    See here:
    http://agallerydemo.wordpress.com/2011/03/15/include-from-media-library-gallery/

    and here
    http://agallerydemo.wordpress.com/parent-page/child-page-1/grandchild-page/great-grandchild-page/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags