Bug with featured image getting out of sync« Back to Previous Page

I'm using street crm. When the property is first imported, it gets the featured image. If the client changes images, the featured image for that post is not getting updated, which is causing things to look out of date on our website. I've tracked it down to: ``` //make sure we have a post thumbnail and set it to the first image if not if (!wppf_check_thumbnail($postid) && count($property_images)>0) { set_post_thumbnail($postid, $property_images[0]); } ``` It shouldn't just be checking if a thumbnail exists, it should be checking if it matches the current `property_image[0]`, because this is run every time the sync runs.
Posted by Ben Sykes
Asked on 7th June 2023 4:17 pm
0

Thank you Ben for digging into this. I am preparing a release which will include the fix you have identified.

Posted by Ian
Answered on 8th June 2023 12:13 pm
0

Actually it seems that this is not the actual solution. I have realised that many of the integration files all have a call to set_post_thumbnail() where the featured image is set, if it fails the wppf_check_thumbnail() check. But this is missing in the street integration. So it seems like its just a bug with the street integration.

Posted by Ben Sykes
Answered on 7th June 2023 4:30 pm