I’m trying to update my Google Sitemaps plugin and here is the code where it puts together the post image url:
protected function get_image_data($image_id)
{
$image = get_post($image_id);
return array(
'location' => wp_get_attachment_thumb_url($image->ID),
'title' => $image->post_title,
'caption' => $image->post_excerpt
);
}
I want to use the ‘large’ image size instead of the thumbnail. Having trouble to get it work.
All feedback appreciated!
Ryan