OG: Image Problem
-
Hello there! I am big fun of Yoast SEO and I am using the free version on almost all of my websites. Now at one of the websites I have faced a problem. I have like 600 posts with 600 different galleries and the website is hosted at WordPress (Photo Gallery by Supsystic is the gallery plugin).
The open-graph option at Yoast is enabled. Now here comes the strange part. When I check the source code of several posts there is OG: Image present. When I check any other completely random there is not OG:Image line. I have tried to use the same settings for the gallery (imported from one where is everything fine) and the problem has not been fixed. Some of the posts have featured images and they show OG:Image tag while some does not have featured image but still show the tag.
I have tried adding some functions in the functions.php file, used various plugins but nothing worked. I have even tried disabling plugins, installing health checker but I still see the error message: “The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags” when I perform a Facebook fetch. Also, when I add image in the post outside of the gallery where the OG Image is not present the code become visible in the source code. For some reason it does not read the contents inside the gallery as it seems.
But why only on several posts when the settings are same for all of the galleries? I can share the url with any of the support and if anyone can help me I will be more than grateful. I want to share the Facebook posts with specific image (or first image in the content as featured) but currently can’t. I have spend like 2 days trying to figure it out.
P.S I am using the latest version of WordPress, Yoast and php.
- The topic ‘OG: Image Problem’ is closed to new replies.