Simple Social Meta Tags

Description

This plugin automatically places the most relevant social media Open Graph (OG) meta tags into the head section of your web pages.

  1. og:site_name = Your website’s title
  2. og:url = The link to the current page
  3. og:title = The title of the current page
  4. og:type = The type of the website; website (Page) or blog (Post or Index)
  5. og:description = The first three sentences of the page’s Post content
  6. og:image = a link to the most relevant image.

The image chosen is…

  1. The Featured Image, or if none…
  2. The first Content image, or if none…
  3. A default image you upload to your server’s home directory named “social_default_image” (.jpg or .png), or if none…
  4. The site theme’s custom logo, or if none…
  5. The custom header image, or if none…
  6. No image meta tag will be output.

Screenshots

  • screenshot-1
  • screenshot-2

Installation

  1. Upload the plugin folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

How can I preview what my page will look like when shared on social media?

For Facebook, use the page debugger tool here…

https://developers.facebook.com/tools/debug/sharing/

You can use this to adjust your page and then re-check it until it looks the way you want.

I’m not impressed. Why doesn’t the result look like it should?

Make sure you don’t have another plugin, like Jetpack, adding Open Graph tags too.

How can I force the link preview and/or image to be different from the page content?

Put a <div> tag at the top of the content area with your text and image within. Then add the CSS style display:none; to the <div>. Now the <div> won’t display on the page, but the meta tags will use this content.

For example:

<div style="diplay:none;">
Sentence one. Sentence two. Sentence three.
<img src="myimage.png" />
</div>

Begin page content…

How can I ask a question?

Please contact me at: mitch@elementengage.com

Can I add Twitter tags and others too?

No, but I can for you. Please contact me.

Contributors & Developers

“Simple Social Meta Tags” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.5

  • Rebranded the plugin.

1.3

  • Initial Release to Public

1.4

  • Improved image file validation