Title: php code for large featured image?
Last modified: August 21, 2016

---

# php code for large featured image?

 *  Resolved [streettb](https://wordpress.org/support/users/streettb/)
 * (@streettb)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-code-for-large-featured-image/)
 * Hi I’m adding a second instance of the prettyphoto lightbox on my single product
   page and I’m trying to get the php for the URL for the featured image before 
   the crop has been set.
 * That is, the URL for the cropped image is something like:
    [http://mydomain.com/wp-content/uploads/2011/12/imagename-350×420.jpg](http://mydomain.com/wp-content/uploads/2011/12/imagename-350×420.jpg)
   where “350×420” is added to the image name of the original featured image upload,
 * So what I’m wanting is something like
    < href='<?php ?>’ rel=’prettyPhoto’>
 * What is the php for the URL to the featured image (before resizing)?
 * [http://wordpress.org/extend/plugins/woocommerce/](http://wordpress.org/extend/plugins/woocommerce/)

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

 *  [IgniteWoo Team](https://wordpress.org/support/users/ignitewoo/)
 * (@ignitewoo)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-code-for-large-featured-image/#post-3719311)
 * Featured images in WooCommerce work exactly the same as WordPress. See this post
   for ideas on how you might do this:
 * [http://wordpress.org/support/topic/getting-a-post-featured-image-url?replies=9](http://wordpress.org/support/topic/getting-a-post-featured-image-url?replies=9)
 *  Thread Starter [streettb](https://wordpress.org/support/users/streettb/)
 * (@streettb)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-code-for-large-featured-image/#post-3719357)
 * Yup – Thanks for the link – that helped a lot!!

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

The topic ‘php code for large featured image?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3640790)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [streettb](https://wordpress.org/support/users/streettb/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/php-code-for-large-featured-image/#post-3719357)
 * Status: resolved