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.
|
▲ ▼ |
Thank you Ben for digging into this. I am preparing a release which will include the fix you have identified. |
▲ ▼ |
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. |
Please log in to post questions/answers:
Try for free
Complete the form below to sign up for free 1 month trial of WP Property Feed.
Submitting...