WordPress.org

Ready to get started?Download WordPress

Forums

where to find image ids for gallery shortcode? (2 posts)

  1. marthalee
    Member
    Posted 3 years ago #

    How do I find the id of an image?

    I can insert it into a page and find the id buried in a bunch of code.

    I'm doing multiple galleries per page, so I need to use "include" in the gallery shortcode. It seems really weird to have to insert the link into the post just to find out the id number, then delete the html link and add the number to the shortcode.

    I cannot find the image id ANYWHERE: not on the page, not in media, not on some mouseover. If it's going to be used in shortcode, why not make it (relatively) easy to find???

    Or, am I missing something?

  2. Joe Banks
    Member
    Posted 3 years ago #

    I hear you! I was just researching if there was a way to have the ID show up in the Media uploader, after I've uploaded images to a saved page. No luck.

    However, there are 2 plugins, the first I've used extensively, that reveal IDs for everything in their respective Edit pages, e.g., for Photos/Media, after installing one of these plug-ins, go to (Media > Library).

    http://wordpress.org/extend/plugins/reveal-ids-for-wp-admin-25/

    http://wordpress.org/extend/plugins/wp-show-ids/

    These help greatly, but when I want to create a Gallery with shortcode, it's still tedious to go out of the Media Uploader & the page/post and into Media > Library and back again, so I keep two tabs open, an extra one simply for the Media > Library.

Topic Closed

This topic has been closed to new replies.

About this Topic