{"action":"closed","issue":{"url":"https://api.github.com/repos/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/234","labels_url":"https://api.github.com/repos/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/234/comments","events_url":"https://api.github.com/repos/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/234/events","html_url":"https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/234","id":67488765,"number":234,"title":"Redirecting featured image not working","user":{"login":"SupremeMark","id":11880029,"avatar_url":"https://avatars.githubusercontent.com/u/11880029?v=3","gravatar_id":"","url":"https://api.github.com/users/SupremeMark","html_url":"https://github.com/SupremeMark","followers_url":"https://api.github.com/users/SupremeMark/followers","following_url":"https://api.github.com/users/SupremeMark/following{/other_user}","gists_url":"https://api.github.com/users/SupremeMark/gists{/gist_id}","starred_url":"https://api.github.com/users/SupremeMark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupremeMark/subscriptions","organizations_url":"https://api.github.com/users/SupremeMark/orgs","repos_url":"https://api.github.com/users/SupremeMark/repos","events_url":"https://api.github.com/users/SupremeMark/events{/privacy}","received_events_url":"https://api.github.com/users/SupremeMark/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deliciousbrains/wp-amazon-s3-and-cloudfront/labels/wontfix","name":"wontfix","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-10T01:59:42Z","updated_at":"2015-07-27T11:42:40Z","closed_at":"2015-07-27T11:42:40Z","body":"I've run into a strange issue when using this. \r\n\r\nI'm having no problems at all redirecting media within posts through S3 but when it comes to the featured image it doesn't seem to work.\r\n\r\nI've set it up to remove media from the local server so I'm left with no image.\r\n\r\nI've tried inspecting the element with Firefox and it looks like the source isn't loading.\r\n\r\nThe code where the problem lies is:\r\n\r\n\t\t\t<!-- BEGIN IMAGE -->\r\n\t\t\t\r\n\t\t\t<?php if(has_post_thumbnail()) { ?>\t\t\t\t\t\r\n\t\t\t\t<div class=\"post-thumbnail<?php if($gp_settings['image_wrap'] == \"Disable\") { ?> thumbnail-no-wrap<?php } ?>\">\r\n\t\t\t\t\t<?php if($gp_settings['post_type'] == \"Video\") { ?><span class=\"video-icon\"></span><?php } ?>\r\n\t\t\t\t\t<a href=\"<?php the_permalink(); ?>\" title=\"<?php the_title_attribute(); ?>\">\r\n\t\t\t\t\t\t<?php $image = vt_resize(get_post_thumbnail_id(), '', $gp_settings['image_width'], $gp_settings['image_height'], true); ?>\r\n\t\t\t\t\t\t<img src=\"<?php echo $image['url']; ?>\" width=\"<?php echo $image['width']; ?>\" height=\"<?php if($image['height'] != \"0\") { echo $image['height']; } ?>\" alt=\"<?php if(get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true)) { echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true); } else { the_title_attribute(); } ?>\" />\t\t\r\n\t\t\t\t\t</a>\t\t\t\t\r\n\t\t\t\t</div><?php if($gp_settings['image_wrap'] == \"Disable\") { ?><div class=\"clear\"></div><?php } ?>\t\t\t\t\t\r\n\t\t\t<?php } ?>\r\n\t\t\t\r\n\t\t\t<!-- END IMAGE -->\r\n\r\nI'm using a commercial theme so maybe it's a problem with conflicting code?\r\n\r\nAppreciate any help. Many thanks."}}