[wordpress插件] Article JSON-LD文章JSON-LD

wordpress 插件 文章 2020-02-21 11:50 1013 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Article JSON-LD, yet another solution to add Schema.org microdata as a JSON-LD script on your site posts.

第JSON-LD条,这是在您的网站帖子上添加Schema.org微数据作为JSON-LD脚本的另一种解决方案。

it will automatically insert the JSON-LD script in your site tag.

它将自动在您的网站 标签中插入JSON-LD脚本。

Custom-Post-Types Support

自定义帖子类型支持

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

默认情况下,插件支持 post 帖子类型,并通过代码段添加对其他自定义帖子类型的支持,如下例所示:

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

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

/** 

/ ** 

* @return void 

* @返回无效 

*/

* /

function add_article_json_ld_post_type_support() {    

函数add_article_json_ld_post_type_support(){    

add_post_type_support( 'custom', 'article-json-ld' );

add_post_type_support('custom','article-json-ld');

}

}

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

您可以使用代码段插件将代码段添加到您的网站。

WordPress Filters

WordPress过滤器

    • ArticleJsonLd\post_json_ld_data A filter for a post JSON-LD data.
    • ArticleJsonLd \ post_json_ld_data 用于发布JSON-LD数据的过滤器。

    • ArticleJsonLd\post_author_json_ld_data A filter for a post author JSON-LD data.
    • ArticleJsonLd \ post_author_json_ld_data 帖子作者JSON-LD数据的过滤器。

    • ArticleJsonLd\post_publisher_json_ld_data A filter for a post publisher JSON-LD data.
    • ArticleJsonLd \ post_publisher_json_ld_data 用于发布者JSON-LD数据的过滤器。

    Contributing

    贡献

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

    开发人员可以在 Github存储库上为源代码做出贡献。

    Requirements

    要求

    The plugin requires PHP 5.4+ and WordPress 4.4+.

    该插件需要PHP 5.4+和WordPress 4.4 +。

    Supported By

    支持者

安装步骤

    1. Upload and install the plugin
    2. 上传并安装插件

    3. Use the plugin WP filters to customize the data.
    4. 使用插件WP过滤器自定义数据。

下载地址
https://downloads.wordpress.org/plugin/article-json-ld.0.2.1.zip
-EOF-

AI助手支持GPT4.0