-
Notifications
You must be signed in to change notification settings - Fork 896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not updating the OG:data when adding/removing featured images via other plugins #17721
Comments
Confirmed. It looks like we don't update indexables when code calls WP functions to update metadata. With one exception being our own post meta, which we watch here. Because the featured image gets updated with a call to |
I am also finding this a problem as we have a custom interface where a user can change their own featured image using 'set_post_thumbnail()' ... I think you should be watching the post changes there as suggested. Is there any known work around for this issue currently? |
I am also facing same issue, image is not updating |
Also have this issue. I am trying to update the featured image via the Rest API. After updating, I see correctly the new image in the Wordpress editor (even in the Yoast Section !), however og tags show the old image. I need to manually click the "Update" button in the editor (without actually changing anything) to see updated og tags. |
Same, I am trying to update the og image via a php function, it works in the editor even in the yoast section but it does not update the image. (Not even with the "update" button method) |
Please give us a description of what happened.
When altering the featured image of a blogpost in any way (removing/adding/changing) using the plugin Quick Featured Images (https://wordpress.org/plugins/quick-featured-images/) the OG data in Yoast doesn’t update accordingly. So if an image was removed, it will still be present in the OG data until one opens the post and updates it from the standard update button (https://imgur.com/a/upCu6SQ). If the featured image has been changed to a new one the old will be present until the post is updated that way.
I’m talking about these fields (can be seen on on individual posts in the Rest API response): https://imgur.com/a/juys7gV
How can we reproduce this behavior?
Technical info
The text was updated successfully, but these errors were encountered: