Support » Plugins and Hacks » Fix Facebook Like » Thumbnail image size problem

Thumbnail image size problem

  • My pages where always failing the facebook object debugger test because this plugin was taking the 150×150 image. I made a simple change to the plugin and now it pulls the 300×200 image and facebook is happy.

    I simply added the , ‘medium’ argument to the get_post_thumbnail_id method.

    if ( has_post_thumbnail( $posts[0]->ID ) ) {
    				$thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $posts[0]->ID), 'medium'); //Change made here!!!
    				$thumb = $thumb[0]; // take the URL from the array
    				$thumb_set = true;


  • The topic ‘Thumbnail image size problem’ is closed to new replies.
Skip to toolbar