Post taxonomy from exif data

Retrieving attachment image EXIF data As “a plugin” won’t help later visitors, let’s start off with how to retrieve that: # Get the post ID: Use one of the following. Preferred is the API function get_the_ID() # $GLOBALS[‘post’]->ID; # global $post; $post->ID; # get_the_ID(); $meta = wp_get_attachment_metadata( get_the_ID(), false ); # Fetch the EXIF data … Read more

Custom image sizes only for thumbnails

https://github.com/crstauf/WordPress-FeaturedImage-SpecialImageSize try this out; wrote it myself a long time ago. I do have an updated version, coming out soon. let me know if you’ve any questions. as requested, relevant code for functions.php of your theme: // `post_type` => array(width,height,crop) $featimg_sizes = array( ‘post’ => array(50,20,false) ); add_action(‘wp_ajax_set-post-thumbnail’,’generate_featimg_size’,1); function generate_featimg_size() { global $featimg_sizes; $thumbnail_id = … Read more

Gallery images stored elsewhere (preferably Google Drive)

I have been using this wordpress plugin for a while now. http://codecanyon.net/item/useyourdrive-google-drive-plugin-for-wordpress/6219776 I have done alot of searching to try and find a perfect solution to having a large free Storage place for images and then showing those images from my website. This was the only solution i could find for showing the images on … Read more

How can i use wp_get_image_editor for image resizing

A possible solution: Goal: Don’t use add_image_size() to show a custom sized image. If you calculate the image without saving it, all requests will sum up to a huge page load due to repeated unnecessary processing time. So caching or saving the results should be an additional goal. Add a image-processor.php in your template/plugin: //Load … Read more