Envira Gallery Blog

Digital Photography Tips, Tutorials and Resources


How to Sell Your Photos in WordPress

by Waseem Abbas on Sep 15, 2016

Do you want to sell your photos on your own WordPress site? As a photographer, you may want to sell images from your greatest photography adventures online. In this article, we will share how to sell your photos in WordPress.

When you run a photography business, there comes a time when you have amassed a large collection of amazing photos. To bring in some additional revenue, you can sell some of those photos on your WordPress website.

Here’s what you need to do to sell your photos in WordPress:

  • Step 1. Install and activate Envira Gallery plugin
  • Step 2. Create an image gallery with Envira
  • Step 3. Install and activate WooCommerce Addon
  • Step 4. Enable WooCommerce in your image gallery config and lightbox settings
  • Step 5. Add your image gallery to a post/page to start selling your photos

By the end of this tutorial, you will have a WordPress image gallery with an “Add to Cart” button for selling your photos online:

Add to Cart

Ready to get started? Let’s go!

Step 1: Install and Activate Envira Gallery Plugin

First thing you need to do is install and activate the Envira Gallery plugin. Check out this guide to learn more about how to install Envira Gallery.

Envira Gallery

Step 2: Create an Image Gallery with Envira

To create an image gallery with Envira, you need to go to Envira Gallery ยป Add New in the WordPress backend.

Give a title to your image gallery and add the photos in the Native Envira Gallery section.

Add Image Gallery

After adding the photos, simply click on the Publish button.

Publish Gallery

Then, you need to copy the shortcode from Envira Gallery Code widget (you’ll need this for Step 5 below).

For more help with this step, you should check out our guide on how to create an image gallery with thumbnails in WordPress.

Step 3: Install and Activate WooCommerce Addon

Now that you have an image gallery, you’ll need Envira’s WooCommerce Addon to start selling your photos online.

To access this addon, you need Envira Pro or Ultimate license. You can learn more about how to upgrade your license in Envira here.

Go ahead to Envira Gallery ยป Addons. Then install and activate the WooCommerce Addon.

WooCommerce Addon

Step 4: Enable WooCommerce in Your Image Gallery Config and Lightbox Settings

Upon activating the WooCommerce addon, simply edit your image gallery, and you will see a new WooCommerce tab.

Check the box to Enable WooCommerce for Gallery and Lightbox options.

Enable WooCommerce

Now go back to the Images tab and click on the pencil icon to modify the meta information of the photos.

Modify Meta Data

In the WooCommerce Product dropdown, you need to select the product that corresponds to your image.

Select WooCommerce Product

Once you are done, click on the Save Metadata button. Repeat this process for all the photos you want to sell.

Step 5: Add Your Image Gallery to a Post/Page to Sell Your Photos

To add your image gallery to your site, go ahead and edit the desired post or add a new post from Post ยป Add New. Simply paste the shortcode (that you copied in the step 2) in the visual editor.

Paste Shortcode

Update your post to publish your changes, and go to your website. You’ll see an Add to Cart button on your images in the gallery and lightbox.

Add to Cart

That’s all. We hope this article has helped you to learn how to sell your photos in WordPress. You may also want to check out our guide on 15 places to sell nature photography online.

If you like this article, then please follow us on Facebook and Twitter for more free WordPress tutorials.


  1. So you have to create a product for each image in your gallery? what if you have thousands of photos, you need thousands of products?

    1. Hi Darie, as you can see in Step 4 that you can choose a WooCommerce product for each image, so you can assign multiple photos to one product. You don’t need to create thousands of products for your photos. This post is particularly for the photographers or any other photo sellers to sell their amazing photos online. They can easily create the product(s) and add photos related to it to take orders from their website. ๐Ÿ™‚

          1. The question is – does each photo need to have its own product? If you have thousands of photos to sell, do you have to create a product for each photo?

          2. Hey Kevin, as mentioned above, you can see Step 4 for your answer. You can assign multiple photos to one product that means you don’t need to create a product for each photo. ๐Ÿ™‚

  2. How would you add multiple product options to a single photo? If I have a portrait, for expamle, and I want to give the client the option of purchasing it in various sizes, how would I set that up?

  3. Hi Meagan ๐Ÿ™‚ You can certainly use the Woocommerce variable product for such a thing. You would create 1 Woocommerce product and then add variables to those products, such as 8×10, 5×7 etc. Woocommerce demo would show those options on one of their demo products as colors, so imagine instead of colors, it would be sizes.

    This is an Envira gallery using the Woocommerce Addon with a variable product: http://cloud.supportally.com/2A0k3J2z3k46

    Does that help? If you have any trouble at all, you can always pop over to support to ask for some assistance! We’re always there and happy to help!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.