Auto Post Thumbnail
Problem and fix for "sometimes" non-generating thumbnail (2 posts)

  1. 2Kin
    Posted 3 years ago #

    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...


  2. Jay
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Auto Post Thumbnail
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic