Title: Get package ID dynamically
Last modified: December 1, 2021

---

# Get package ID dynamically

 *  [escuadracomunicacion](https://wordpress.org/support/users/escuadracomunicacion/)
 * (@escuadracomunicacion)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/get-package-id-dynamically/)
 * Hello! I love your plugin because I can use it dynamically with Yootheme Pro 
   template!
 * But… Is it possible to get the ID of a package with a function or a shortcode
   or anyway? I need it to display in a custom design… I’ve read the docs but I 
   didn’t find anything relative to get ID.
 * Thanks for your help! ♥

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * (@humayonk)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/get-package-id-dynamically/#post-15121604)
 * Hello [@escuadracomunicacion](https://wordpress.org/support/users/escuadracomunicacion/)
   
   Hope you are doing great and thank you for your query. You should be able to 
   retrieve the package ID by using the `get_the_ID();`. I hope that helps and answers
   your query. Thanks
 *  Thread Starter [escuadracomunicacion](https://wordpress.org/support/users/escuadracomunicacion/)
 * (@escuadracomunicacion)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/get-package-id-dynamically/#post-15124884)
 * Thanks [@humayonk](https://wordpress.org/support/users/humayonk/) I’ve tried 
   this function but the ID displayed is the page ID contaning a datatable with 
   the downloads, not the ID of each download. The thing is that I want to get the
   id of each download to show it in each table row…
 *  [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * (@humayonk)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/get-package-id-dynamically/#post-15129275)
 * Hi [@escuadracomunicacion](https://wordpress.org/support/users/escuadracomunicacion/)
   
   Can you please let us know where are you trying to use that? I mean on which 
   page? If you are trying to use it on a page then it needs to be inside a loop,
   otherwise the `get_the_ID` function will not work. Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Get package ID dynamically’ is closed to new replies.

 * ![](https://ps.w.org/download-manager/assets/icon-256x256.png?rev=1561688)
 * [Download Manager](https://wordpress.org/plugins/download-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/download-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/download-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/get-package-id-dynamically/#post-15129275)
 * Status: not resolved