# Get image post ID

**URL:** <https://community.gravityforms.com/t/get-image-post-id/2121>\
**Category:** Get Help\
**Tags:** gallery, post-image\
**Created:** [June 20, 2019, 7:52am UTC](https://community.gravityforms.com/t/get-image-post-id/2121 "2019-06-20T07:52:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ideje](https://avatars.discourse-cdn.com/v4/letter/i/f07891/32.png) [@ideje](https://community.gravityforms.com/u/ideje)\
**Post date:** [June 20, 2019, 7:52am UTC](https://community.gravityforms.com/t/get-image-post-id/2121/1 "2019-06-20T07:52:30Z")

</div>

Hi!

I want to generate a Photo gallery on post using Shortcode gallery, for example [gallery id=“123”].  
I uploading photo via Post image field.

I try to generate gallery with shortcode [gallery ids="{Dodatne slike Fotogalerijo:81:full:center:post\_id}"] inside the Body field, but unsuccessfuly. Is it possible to get IDs of images post anyway?

Thanks, Daniel

---

<div class="post-metadata">

**Author:** ![ideje](https://avatars.discourse-cdn.com/v4/letter/i/f07891/32.png) [@ideje](https://community.gravityforms.com/u/ideje)\
**Post date:** [June 27, 2019, 7:34am UTC](https://community.gravityforms.com/t/get-image-post-id/2121/2 "2019-06-27T07:34:43Z")

</div>

Any suggestion?

Best

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 4, 2022, 5:23pm UTC](https://community.gravityforms.com/t/get-image-post-id/2121/3 "2022-01-04T17:23:05Z")

</div>

Closed on January 4, 2022, 5:23pm UTC


