Title: Article JSON-LD
Author: Nashwan D
Published: <strong>2016 年 11 月 4 日</strong>
Last modified: 2020 年 10 月 22 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/article-json-ld.svg)

# Article JSON-LD

 作者：[Nashwan D](https://profiles.wordpress.org/alex-ye/)

[下载](https://downloads.wordpress.org/plugin/article-json-ld.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/article-json-ld/#description)
 * [评价](https://cn.wordpress.org/plugins/article-json-ld/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/article-json-ld/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/article-json-ld/#developers)

 [支持](https://wordpress.org/support/plugin/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](https://wordpress.org/plugins/code-snippets) plugin 
to add the code snippets to your site.

An active demo is available on [Arageek](https://www.arageek.com/) 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](https://github.com/nash-ye/wp-article-json-ld).

## 安装

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

## 评价

此插件暂无评价。

## 贡献者及开发者

「Article JSON-LD」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Nashwan D ](https://profiles.wordpress.org/alex-ye/)

[帮助将「Article JSON-LD」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/article-json-ld)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/article-json-ld/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/article-json-ld/)，或通过[RSS](https://plugins.trac.wordpress.org/log/article-json-ld/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/article-json-ld/)。

## 更新日志

#### 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.

## 额外信息

 *  版本 **0.3**
 *  最后更新：**6 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.5.18**
 *  语言
 * [English (US)](https://wordpress.org/plugins/article-json-ld/)
 * 标签
 * [JSON-LD](https://cn.wordpress.org/plugins/tags/json-ld/)[microdata](https://cn.wordpress.org/plugins/tags/microdata/)
   [rich snippets](https://cn.wordpress.org/plugins/tags/rich-snippets/)[schema.org](https://cn.wordpress.org/plugins/tags/schema-org/)
   [seo](https://cn.wordpress.org/plugins/tags/seo/)
 *  [高级视图](https://cn.wordpress.org/plugins/article-json-ld/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/article-json-ld/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/article-json-ld/reviews/)

## 贡献者

 *   [ Nashwan D ](https://profiles.wordpress.org/alex-ye/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/article-json-ld/)