PS: i use also “Regenerate Thumbnails” plugin (lastest versio 2.2.4)
Hi Davide,
Sorry for the delayed reply.
You can add the following to your theme’s functions.php, or a plugin file if you have one to keep site-specific code snippets:
// creates a shortcode to show EXIF outside the loop
add_shortcode( 'widget_exif' , 'exif_outside_loop' );
function exif_outside_loop() {
global $wp_query;
$post_ID = $wp_query->post->ID;
$img = get_post_thumbnail_id($post_ID);
if (function_exists ('exifography_display_exif'))
echo exifography_display_exif($img);
}
// enables shortcodes within widgets
add_filter('widget_text', 'do_shortcode');
Then add [widget_exif] to a text widget. NB you will probably need a plugin that restricts the widget to only single posts and this particular code will show the exif for the featured image.