Tagging more images with og:image in Wordpress

I have a wordpress site with a premium theme and Yoast SEO plugin. Most of my posts have several inline images and then a gallery with thumbnails on the bottom of the post. When I share a post to my Facebook page only the featured image is available as an image on Facebook. I assume this is because only that single image gets tagged as og:image. Is there any way I could have more images available when posting to Facebook? Can I do it in Yoast or do I need a different plugin? Thanks!
LVL 1
ShareThePointAsked:
Who is Participating?
 
rgranlundConnect With a Mentor Commented:
I believe that you can accomplish this by adding custom fields to your Post Pages.  Call them "share images" or something.  Then, place code in the header to show those custom fields.  To add custom fields, go to the top of your post page and click on show hidden fields and activate custom fields.  If you need help writing the PHP loop that will go in the header let me know.
This may not be as nifty as using a plugin but it will do exactly what you want.  The only real caveat is that it is a manual process.  You may be able to find a plugin.
0
 
rgranlundCommented:
Apparently you can put it in the head of your page:
<meta content='http://mysite/low-res.jpg' property='og:image'>
<meta content='http://mysite/med-res.jpg' property='og:image'>
<meta content='http://mysite/hi-res.jpg'  property='og:image'>

But I think you want a plugin to handle it for you?
0
 
ShareThePointAuthor Commented:
Plugin or UI. I am not sure how can I even add code to a single post on WordPress. I was under the assumption that posts are created dynamically and you can only edit the templates.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.