WordPress.org

Ready to get started?Download WordPress

Forums

attachment id for a picture (2 posts)

  1. JimStuhmiller
    Member
    Posted 2 years ago #

    I am trying to create a gallery with only some of the pictures I have uploaded. As I understand it, I can include just those pictures with [gallery include"[x1, x2, x3], where x1 is the photo's "attachement ID".

    I can't seem to find out what the "attachment ID" is. Is it the file name? Is it listed somewhere?

    Thanks

    Jim

  2. Alas, it's not a very obvious thing.

    If you go to your media page (wp-admin/upload.php) and hover over the image name, you'll get a URL like this: http://example.com/wp-admin/media.php?attachment_id=676&action=edit

    The 676 is the the ID.

Topic Closed

This topic has been closed to new replies.

About this Topic