I'm using the awake 1.3 theme and a plugin called socialize. I wonder how to get the blogpost image link into the open graph meta tag? Especially I like to include a resized (blogpost) image. Resized images are cached by the template, or?
I found the part where the blogpost image is processed for output in theme-functions.php, but I don't know what to insert or modify in the plugin function.
So here is the function of the plugin I want to modify:
function get_properties(){ global $post; $socialize_settings = get_option('socialize_settings10'); $og_properties = array(); if(is_singular()){ $image = ''; if (current_theme_supports('post-thumbnails') && has_post_thumbnail($post->ID)) { $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail'); if ($thumbnail) { $image = $thumbnail[0]; } } $og_properties = array( 'og:title' => $post->post_title, 'og:type' => 'article', 'og:url' => get_permalink(), 'og:image' => $image 'here I want the link to the image pull in', 'og:site_name' => get_bloginfo('name'), 'og:description' => strip_tags(get_the_excerpt()), 'fb:app_id' => $socialize_settings['socialize_fb_appid'], 'fb:admins' => $socialize_settings['socialize_fb_adminid'], 'fb:page_id' => $socialize_settings['socialize_fb_pageid'] ); } return $og_properties; }
Did you have a quick idea to get the original image link or resized image link in there?
Thanks in advance, Jan













