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

Article JSON-LD

描述

Article JSON-LD is an extendable and straightforward solution to enhance your site SEO by adding Schema.org microdata as a JSON-LD script on your site posts.

It will automatically insert the JSON-LD script in your site <head> tag by using the standard information provided by WordPress, such as the title, description, featured image, publish date, author, categories..etc.

You can support your custom post types or modify the data easily by using the plugin’s hooks.

Custom-Post-Types Support

By default, the plugin supports the post post-type. Add support for other custom-post-types using a code snippet as the example below:

add_action('init', 'add_article_json_ld_post_type_support', 15);

/**
 * @return void
 */
function add_article_json_ld_post_type_support()
{
    add_post_type_support('custom-post-type', 'article-json-ld');
}

You can use Code Snippets plugin to add the code snippets to your site.

An active demo is available on Arageek articles.

Plugin’s Hooks

  • ArticleJsonLd\post_json_ld_data A filter for a post JSON-LD data.
  • ArticleJsonLd\post_author_json_ld_data A filter for a post author JSON-LD data.
  • ArticleJsonLd\post_publisher_json_ld_data A filter for a post publisher JSON-LD data.

Contributing

Developers can contribute to the source code on the Github Repository.

安裝

  1. Upload and install the plugin
  2. Use the plugin WP filters to customize the data.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Article JSON-LD” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Article JSON-LD 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

0.3

  • Add compatibility for latest version of WordPress SEO by Yoast.

0.2.1

  • Add the ‘description’ property and use get_the_excerpt() to get the value.
  • Use the ISO 8601 format for ‘datePublished’ and ‘dateModified’ properties.
  • Use get_the_title() to get the `headline’ property value.
  • Some fixes and minor enhancements.

0.2

  • The Initial version.