Custom image meta tag for each post (when posting on social media)
I’m interested in customizing the featured image used when sharing a post from my WP page on FB and TW. I need one image as the default featured image on the site, and then a completely different one (that doesn’t appear in the post) on social media.
I’ve gotten far enough to figure out that I have to customize the meta data information for each post, adding something like this:
<meta property="og:image” content=“https://example.lv/image.png“ />
SOMEWHERE for each post. But I can’t figure out where, and can’t find a plugin that would help me do that. The closest I got to that was a plugin that allowed me to customize the meta tag image for the whole site (all links) by putting the meta code in the header, but I need it customized for each post.
An example of what I want to do is the Russian media Meduza.io
Here’s the social media post linking to the article – with an image: https://www.facebook.com/meduzaenglish/posts/1889823257728603
Here’s the article itself, with no images whatsoever: https://meduza.io/en/news/2018/05/02/moscow-wants-to-internationalize-the-fight-against-fake-news-to-stop-the-west-s-totalitarian-crackdown-on-dissent
Here’s a social media post with the featured image altered to have the title on it: https://www.facebook.com/meduzaenglish/posts/1889814907729438
Here’s the actual article, different image with no alterations: https://meduza.io/en/feature/2018/05/02/it-s-not-easy-telling-parents-that-their-child-is-dead
I asked Meduza and they said they used the meta tag to do it, but couldn’t help with the set-up as their site is not on WP.
Can you help me figure this one out?
The page I need help with: [log in to see the link]
- The topic ‘Custom image meta tag for each post (when posting on social media)’ is closed to new replies.