Hello @tapsuccess,
Thanks for contacting us.
For Twitter to create a preview of your shared content, you need to add to your code either Open Graph tags or Twitter Cards to explicitly declare the image, description, and title to be shared. You can read more about this in our article.
Also, after this has been done, Twitter takes around 7 days to update the information they have about your site. You can fast forward this process following their instructions (https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/troubleshooting-cards#refreshing_tags)
Hope this helps.
Best,
The ShareThis Technical Support team.
Thanks for the reply. All of the examples are .jpg. This is a featured image. How to code once in the header for dynamic post images?
-
This reply was modified 3 years, 6 months ago by
tapsuccess.
-
This reply was modified 3 years, 6 months ago by
tapsuccess.
Hi @tapsuccess,
WordPress offers the ability to get the post image specific to a page using the get_the_post_thumbnail() function. You could replace the default jpg image with the function.
You can read more about this on their documentation: https://developer.ww.wp.xz.cn/reference/functions/get_the_post_thumbnail/
However, you could also use the Yoast plugin on WordPress to help you automatically create these tags for you.
Best.