Title: can php shortcode detect post width in pixels?
Last modified: August 19, 2016

---

# can php shortcode detect post width in pixels?

 *  [dugbug](https://wordpress.org/support/users/dugbug/)
 * (@dugbug)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/can-php-shortcode-detect-post-width-in-pixels/)
 * Hi,
 * I am wanting to develop a shortcode that determines post width and can then optimally
   work a dynamic image resize.
 * I need to know pixels because of a third-party dependency.
 * Since I want to support both a PC and wptouch mobile access I can’t hard-code
   a solution.
 * Thanks for any help!
 * -d

The topic ‘can php shortcode detect post width in pixels?’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [width](https://wordpress.org/support/topic-tag/width/)

 * 0 replies
 * 1 participant
 * Last reply from: [dugbug](https://wordpress.org/support/users/dugbug/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/can-php-shortcode-detect-post-width-in-pixels/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
