WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] php code for large featured image? (3 posts)

  1. streettb
    Member
    Posted 1 year ago #

    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-350x420.jpg
    where "350x420" 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/

  2. IgniteWoo
    Member
    Posted 1 year ago #

    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

  3. streettb
    Member
    Posted 1 year ago #

    Yup - Thanks for the link - that helped a lot!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic