這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

MetaPin

外掛說明

MetaPin was written to do one thing, and hopefully do that one thing well. That one thing? Add metadata to img tags that Pinterest can use to get relevant information about the image. This allows you to change the image that gets pinned, restrict pinning of an image, ensure that all pins will be consolidated to the correct pin on Pinterest, specify the URL that is pinned, and provide rich pin descriptions without spamming your alt or title attributes.

MetaPin allows you to change the pin attributes for every instance of an image. This means that you’ll be able to use an image on multiple posts, say one an item description and category aggregation page, and configure different pin descriptions for each instance of that same image.

The MetaPin plugin is very simple, and you’ll only see a panel show up when you edit an image inserted into a post either with the block editor or classic editor. You will see the fields for each of the configurable items listed below.

The following data is added to instances of images embedded in posts:

data-pin-description

Pin description allows you to add hashtags and more wordy pin descriptions without spamming your alt attribute for your images. This can help with SEO and ensure that all the images on a page generate the same pin description

data-pin-url

The URL provided here will change which URL the pin created from this image will point to. This could, for example, be used to add UTM tags to pins to be able to track how many clicks you get on your pins because somebody pinned an image from your site.

data-pin-id

The Pin ID is less straightforward. Each pin has a unique ID, and this allows you to ensure that when an image is pinned that it counts as the same image as the one with the pin ID that was provided.

data-pin-media

The media URL provided here allows you to “force” or encourage a user to pin a different image or media than the one that they chose. This allows you to have a long pinnable image that shows up on the pin that is never loaded on the page that you want them to pin.

data-pin-nopin

Simply put, this attribute tells pinterest not to allow pinning of this image.

All of these attributes are just metadata that a pinning client that doesn’t conform to Pinterest’s guidelines may choose to ignore.

螢幕擷圖

  • Accessing the meta fields with the Classic Editor
  • Classic Editor Fields
  • Block Editor Fields

安裝方式

Since this doesn’t modify anything in the database, installation and removal are low risk. The block editor version does store attributes on an image item, but it should work when switching between the classic and block editor.

使用者評論

2022 年 12 月 28 日
It took me some major time to track down that it was THIS plugin, out of 76, that causes my block editor to crash 100% of the time. I’m quite upset about it, as I didn’t think this plugin could have anything to do with such problems. I use the latest Genesis Pro + Genesis theme, so perhaps avoid if you’re using Genesis, or perhaps even just the block editor…. Current date: 28 December 2022
2020 年 3 月 1 日 1 則留言
Great plugin, does exactly what it says it will do. Very easy to edit images and add your pinterest description. I wonder if it would be possible to have a meta title box to add a different tittle than the article title? Thank you!
2018 年 10 月 23 日
It does what it needs to do. I was looking for a plugin where I can add data-pin-description for pinterest and with this plugin I can do it. In the editor click on the img edit button then there you can find the inputs. Thanks for the plugin!
閱讀全部 4 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈MetaPin〉的開發相關工作。

參與者

將〈MetaPin〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄