BACK TO DIRECTORY

Stock Images

by Bimal Poudel

0.0
(0 ratings)

Import photos and images from your personally hosted stock images.

Adds a shortcode to access your images. [stockimage width=”450″ height=”300″ name=”my-photo.jpg”]

After installation, edit the URL of your stock image repository at: Settings > General > Stock Image URL.

All your photos can be pointed from your configured url.

For example, if you pointed to http://www.example.com/stock-images/%s as your URL, your photos will be accessed as http://www.example.com/stock-images/my-photo.jpg in the above example. You can drop photos inside stock-images/ path via FTP or similar.

It can be a very creative replacement of your media library, and works better if you are describing a product or something else. You will have a total control of images to be served.

Setting up a basic stock image hosting

Create a folder named stock-images inside your FTP account which is accessible from your website. Drop in all your optimized images there. Stop directory listing with an empty index.php file. Optionally configure .htaccess for direct/hot-linking into your images from unauthorised websites or direct image downloaders.

Configure your URL to point into this folder.

Then the pattern [stockimage width="450" height="300" name="my-photo.jpg"] will point to your specific image as <img src='http://www.example.com/stock-images/my-photo.jpg' width='450' height='300'>.

Plugin Details

Active Installs
10
Total Downloads
1,664
Version
1.0
Requires WP
4.5.0
Requires PHP
Tested Up To
4.5.33
Added
2016-06-18
Last Updated
2016-06-19 9:46am GMT

Ratings

5
0
4
0
3
0
2
0
1
0