Some WordPress plugins require you to enter ID numbers of uploaded pictures, which they’d do some modifications/effects on.
Especially gallery-managing or other visual plugins (like WP Slide-up Box) can use these picture ID numbers. The problem is that WordPress doesn’t show these numbers to the users by default. But don’t worry, there are plenty of ways you can find the ID of the pictures.
The hover method
- Go to Media » Library in the WP Admin panel.
- Here you can see a grid of uploaded images (if there is any):
- Now click on the image you need, and you’ll see the Attachment details screen:
- On this screen hove your mouse over the Edit more details link
- In the browser’s status bar, you’ll see something like that:
https://a-idea.studio/wp-admin/post.php?post=459&action=edit
The highlighted number (the number right after the ‘post=’ text) shows the ID number of the picture.
The plugin method
Go to Plugins » Add new in the WP-admin. Write ‘wp show ids’ to the search forms. Install one of the following plugins (pick one of them – they’ll do the same):
- Show IDs by 99 Robots
- Catch IDs
- Reveal IDs
After activating the plugin, you’ll be able to see the IDs of the images in the Media Library. It is useful to use a plugin if you have to deal often with image IDs.
I’ve installed and activated “Catch IDs”, and I expected the IDs to be displayed for my images stored in the Media library. Is there something else I need to do? Thanks T. Rosewood.
Are you using the List or Grid view in the media library? It’s possible that it only works with the List view.
hey uhh where do you find URL in images so i can find this image id?
Do you mean finding the image ID when you only know its URL?
how can i get id while templating?
Hi Patrick,
Could you be more specific, please? Where would you like to find the image ID in your templates and which ID are you trying to find?
Thank you sooooo much!!! You’re amazing!
Hallo
I have this dowloand in my plugins but i find not he code
Hi Corinne,
Could you give me more explanation on this, please? What did you download exactly and what is the code that you can’t find?