I'm using the sharethis plugin for wordpress and I'm having some issues with my featured image not appearing when I share a post on facebook. I'm trying to override this by specifying an 'st_image' parameter in the HTML code settings on the options page. I've modified the facebook share button to the following:
<span class='st_facebook_hcount' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' st_image='<?php echo wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?>' displayText='share'>
However, for some reason, the PHP after st_image= doesn't get parsed. The code renders on the page as:
<span class="st_facebook_hcount" st_title="A simple choice" st_url="http://www.alpha-i.net/blog/meditation/a-simple-choice/" st_image="<?php wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?>" displaytext="share"></span>
Is this a bug in the plugin? Any suggestions would be appreciated.