Title: [Plugin: NextGEN Gallery] Get thumbnail width
Last modified: August 20, 2016

---

# [Plugin: NextGEN Gallery] Get thumbnail width

 *  [nchellzz](https://wordpress.org/support/users/nchellzz/)
 * (@nchellzz)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-get-thumbnail-width/)
 * hello I’m trying to display the thumbnail width on a custom nextgen gallery template.
   The code as follows:
 * `<div class="content" id="pic<?php echo $image->pid ?>" ord="<?php echo $image-
   >pid ?>" contentwidth="<?php echo $image->meta_data['width'] ?>px">`
 * I need to replace the **contentwidth **with the **thumbnail** width value, with
   the code above I get the **original **width.
 * Can someone help?
 * [http://wordpress.org/extend/plugins/nextgen-gallery/](http://wordpress.org/extend/plugins/nextgen-gallery/)

The topic ‘[Plugin: NextGEN Gallery] Get thumbnail width’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [nchellzz](https://wordpress.org/support/users/nchellzz/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-get-thumbnail-width/)
 * Status: not resolved