Support » Plugin: Auto Post Thumbnail » Problem and fix for "sometimes" non-generating thumbnail

  • If you have an article wich is copy/paste from another wordpress blog, the system fail at generating a thumbnail.

    To fix that, you just have to skip this detection in the “apt_publish_post” function (near lines 260) :

    * If the image is from wordpress's own media gallery, then it appends the thumbmail id to a css class.
    * Look for this id in the IMG tag.
    // preg_match('/wp-image-([\d]*)/i', $image, $thumb_id);
    // $thumb_id = $thumb_id[1];

    I think there is a cleaner way to correct it (by checking the domain of the image and compare it to your own, for exemple), but I don’t know WordPress well enough to make it work the right way…

Viewing 1 replies (of 1 total)
  • Jay


    Good insight…I have noticed this behavior as well. I will try to see if this fixes my problem. But, I do agree that a domain check would be a better solution.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem and fix for "sometimes" non-generating thumbnail’ is closed to new replies.