I have a similar problem.
I do have og:image but
there is no twitter:image
This seems to be by design. From the 14.0 patch notes:
“No longer outputs a twitter:title, twitter:image and/or twitter:description meta tag when there is already an og:title, og:image and/or og:description meta tag specified in the frontend output and they’re not specifically set to something else.”
-
This reply was modified 5 years, 11 months ago by
dontwakeme.
Hi @kzmvkz ,
We’ve checked the provided site URL and we can see that og:image is still being output. Can you please confirm if it’s now working for you?
@aimarv @dontwakeme ,
Twitter falls back to OG so there is no need to output them both which is why on 14.0, twitter:image is no longer output when og:image is present.
When the Twitter card processor looks for tags on a page, it first checks for the Twitter-specific property, and if not present, falls back to the supported Open Graph property.
You can read more about it here:
https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#opengraph.
Thread Starter
kzmvkz
(@kzmvkz)
Thank you for your response @jerparx
It’s still not working and i had to write it myself.
Some pages can automatically generate og:image tag but others cannot.
It only happens with “page”, not “post”.
Please let me know if you want more infor.
Thanks!
@kzmvkz Can you please confirm whether the issue still occurs when you are using the most recent Yoast v14.2? You can learn more about updating here: https://kb.yoast.com/kb/how-can-i-update-my-free-plugin/
If the issue still occurs when using 14.2, we would next recommend performing a conflict check to see whether another plugin or theme is interfering. We have a guide on how to perform a conflict check here: https://kb.yoast.com/kb/how-to-check-for-plugin-conflicts
Hi!
We’re closing this thread because we haven’t heard back from you in a while. Should you have further questions, please open a new thread.