Skip to content

ArboLife/Events-Manager-Cloudinary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

events-manager-image-size-with-crop-for-cloudinary.php

Events Manager Image size with crop for Cloudinary.

To use this code you need those 2 plugins installed:

Deployment: this code can either be installed as a plugin or pasted in the functions.php of a child theme.

Usage: #_CUSTOMEVENTIMAGE{x,y} Shows the event image thumbnail, x and y are width and height respectively, both being numbers e.g. #_CUSTOMEVENTIMAGE{100,100}. If 0 is used for either width or height, the corresponding dimension will be proportionally sized. If both attributes are supplied, this plugin adds the c_fill code to the Cloudinary URL allowing to fill the dimension provided with the image by cropping it.

The shortcode #_CUSTOMEVENTIMAGE is used as a replacement of the original Events Manager shortcode #_EVENTIMAGE, as documented here: http://wp-events-plugin.com/documentation/placeholders/

Please note that this plugin has not been tested with the Disable thumbnails option turned on. Please keep it off if you're using this code.

About

Events Manager Image size with crop for Cloudinary

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages