• 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;
    			}

    https://www.ads-software.com/plugins/fix-facebook-like/

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