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

Twitter Card Generator

描述

Generate Twitter meta tags for your standard WordPress posts automatically.
To configure which type of twitter card the plugin will generate, visit the plugin settings page.
More information about Twitter Cards can be Found Here.

The current supported types of twitter cards are:
* Summary Card
* Large Image Summary Card
* Photo Card
* Gallery Card
* App Card

Instructions for Use

Twitter Account:

Update your WordPress profile by adding your Twitter username in the WordPress User Profile Screen.
Each Twitter card generated will automatically be updated with the Twitter account associated with the WordPress user.

Card Type:

In the settings of the plugin, choose the type of Twitter Card to generate.
Follow the instructions below for your desired card type:

Summary Card:

  • The post title will be used as the title, and the post excerpt (max 200 characters) will be used as a description.
  • The featured image of the post will be used as the thumbnail.
  • If the post does not have a featured image, the image in the plugin settings will be used.
  • If no image is set (featured or settings) no image will appear, and the Twitter Card may not work correctly.
  • The image used must be larger than 60×60 px in size.
  • When setting a default image in the settings screen, images from the WordPress media library
    will be listed. To add images to choose from, upload them to the WordPress media library using the main menu.
  • Images larger then 1MB are not supported.
  • Animated GIF’s are not supported.

Large Image Summary Card:

  • The post title will be used as the title, and the post excerpt (max 200 characters) will be used as a description.
  • The featured image of the post will be used as the thumbnail.
  • If the post does not have a featured image, the image in the plugin setting will be used.
  • If no image is set (featured or settings) no image will appear, and the Twitter Card may not work correctly.
  • The image used must be a minimum of 280px wide, and 150px high.
  • When setting a default image in the settings screen, images from the WordPress media library
    will be listed. To add images to choose from, upload them to the WordPress media library using the main menu.
  • Images larger then 1MB are not supported.
  • Animated GIF’s are not supported.

Photo Card:

  • The post title (optional) will be used as the title, and the post excerpt (max 200 characters) will be used as a description.
  • Twitter will automatically resize images to the following sizes: Web: maximum height of 375px, maximum width of 435px, Mobile (non-retina displays), maximum height of 375px, maximum width of 280px, Mobile (retina displays): maximum height of 750px, maximum width of 560px
  • The image must be a minimum of 280px wide, and 150px high.
  • Images larger then 1MB are not supported.
  • Animated GIF’s are not supported.

Gallery Card:

  • The post title will be used as the title, and the post excerpt (max 200 characters) will be used as a description.
  • The first four images attached to the post will be featured in the gallery card.

App Card:

  • This card is designed for websites showcasing specific mobile applications for iOS and Android.
  • If you use this card, each tweet will feature the pointed application.

Twitter Validation:

Your Twitter Card must be validated by Twitter in order to work correctly.
You can test and validate your Twitter Card using the Validator

螢幕截圖

  • Settings Menu
  • WordPress User Profile Twitter Section
  • Example of Summary Twitter Card

安裝

  1. Extract/Upload the directory twitter-card-generator to the /wp-content/plugins/ directory of your site.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Ensure you have WordPress excerpt turned on in the screen settings (found at the top of the post screen).

常見問題

Why is my Twitter Card is not working?

Use the Twitter Card Validator to ensure you are validated to use Twitter Cards. This feature will flag any other errors relating to your card.

Why is the Gallery card is displaying the wrong images?

Navigate to the WordPress Media Library and ensure there are no images attached to the post in question.

Why is the Image selected is not displaying on Twitter?

Ensure the image is less then 1MB in file size, larger then 60px x 60px in dimensions, and not an animated GIF.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Twitter Card Generator” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Twitter Card Generator 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0.0

  • Summary Card support hard coded.

1.0.1

  • Mulitple Card support added.
  • Settings menu added.

1.0.2

  • Added fix to prevent admin styles loading on front end.
  • Minor code maintenance

1.0.3

  • Bug fix to custom_meta_box code

1.0.4

  • Fixed issue which caused summary cards to display the image at 150×150