AI助手支持GPT4.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.
它将自动在您的网站 code>标签中插入JSON-LD脚本。 p>Custom-Post-Types Support自定义帖子类型支持 h4>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 code>帖子类型,并通过代码段添加对其他自定义帖子类型的支持,如下例所示: p>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');}} code> pre>You can use Code Snippets plugin to add the code snippets to your site.您可以使用代码段插件将代码段添加到您的网站。 p>WordPress Filters WordPress过滤器 h4>ArticleJsonLd\post_json_ld_data A filter for a post JSON-LD data. ArticleJsonLd \ post_json_ld_data code>用于发布JSON-LD数据的过滤器。 li>ArticleJsonLd\post_author_json_ld_data A filter for a post author JSON-LD data. ArticleJsonLd \ post_author_json_ld_data code>帖子作者JSON-LD数据的过滤器。 li>ArticleJsonLd\post_publisher_json_ld_data A filter for a post publisher JSON-LD data. ArticleJsonLd \ post_publisher_json_ld_data code>用于发布者JSON-LD数据的过滤器。 li> ul>Contributing贡献 h4>Developers can contribute to the source code on the Github Repository.开发人员可以在 Github存储库上为源代码做出贡献。 p>Requirements要求 h4>The plugin requires PHP 5.4+ and WordPress 4.4+.该插件需要PHP 5.4+和WordPress 4.4 +。 p>Supported By支持者 h4>Arageek website. Arageek 网站。 li> ul>
code>标签中插入JSON-LD脚本。 p>Custom-Post-Types Support自定义帖子类型支持 h4>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 code>帖子类型,并通过代码段添加对其他自定义帖子类型的支持,如下例所示: p>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');}} code> pre>You can use Code Snippets plugin to add the code snippets to your site.您可以使用代码段插件将代码段添加到您的网站。 p>WordPress Filters WordPress过滤器 h4>ArticleJsonLd\post_json_ld_data A filter for a post JSON-LD data. ArticleJsonLd \ post_json_ld_data code>用于发布JSON-LD数据的过滤器。 li>ArticleJsonLd\post_author_json_ld_data A filter for a post author JSON-LD data. ArticleJsonLd \ post_author_json_ld_data code>帖子作者JSON-LD数据的过滤器。 li>ArticleJsonLd\post_publisher_json_ld_data A filter for a post publisher JSON-LD data. ArticleJsonLd \ post_publisher_json_ld_data code>用于发布者JSON-LD数据的过滤器。 li> ul>Contributing贡献 h4>Developers can contribute to the source code on the Github Repository.开发人员可以在 Github存储库上为源代码做出贡献。 p>Requirements要求 h4>The plugin requires PHP 5.4+ and WordPress 4.4+.该插件需要PHP 5.4+和WordPress 4.4 +。 p>Supported By支持者 h4>Arageek website. Arageek 网站。 li> ul>
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
默认情况下,插件支持 post code>帖子类型,并通过代码段添加对其他自定义帖子类型的支持,如下例所示: p>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');}} code> pre>You can use Code Snippets plugin to add the code snippets to your site.您可以使用代码段插件将代码段添加到您的网站。 p>WordPress Filters WordPress过滤器 h4>ArticleJsonLd\post_json_ld_data A filter for a post JSON-LD data. ArticleJsonLd \ post_json_ld_data code>用于发布JSON-LD数据的过滤器。 li>ArticleJsonLd\post_author_json_ld_data A filter for a post author JSON-LD data. ArticleJsonLd \ post_author_json_ld_data code>帖子作者JSON-LD数据的过滤器。 li>ArticleJsonLd\post_publisher_json_ld_data A filter for a post publisher JSON-LD data. ArticleJsonLd \ post_publisher_json_ld_data code>用于发布者JSON-LD数据的过滤器。 li> ul>Contributing贡献 h4>Developers can contribute to the source code on the Github Repository.开发人员可以在 Github存储库上为源代码做出贡献。 p>Requirements要求 h4>The plugin requires PHP 5.4+ and WordPress 4.4+.该插件需要PHP 5.4+和WordPress 4.4 +。 p>Supported By支持者 h4>Arageek website. Arageek 网站。 li> ul>
post code>帖子类型,并通过代码段添加对其他自定义帖子类型的支持,如下例所示: p>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');}} code> pre>You can use Code Snippets plugin to add the code snippets to your site.您可以使用代码段插件将代码段添加到您的网站。 p>WordPress Filters WordPress过滤器 h4>ArticleJsonLd\post_json_ld_data A filter for a post JSON-LD data. ArticleJsonLd \ post_json_ld_data code>用于发布JSON-LD数据的过滤器。 li>ArticleJsonLd\post_author_json_ld_data A filter for a post author JSON-LD data. ArticleJsonLd \ post_author_json_ld_data code>帖子作者JSON-LD数据的过滤器。 li>ArticleJsonLd\post_publisher_json_ld_data A filter for a post publisher JSON-LD data. ArticleJsonLd \ post_publisher_json_ld_data code>用于发布者JSON-LD数据的过滤器。 li> ul>Contributing贡献 h4>Developers can contribute to the source code on the Github Repository.开发人员可以在 Github存储库上为源代码做出贡献。 p>Requirements要求 h4>The plugin requires PHP 5.4+ and WordPress 4.4+.该插件需要PHP 5.4+和WordPress 4.4 +。 p>Supported By支持者 h4>Arageek website. Arageek 网站。 li> ul>
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');}} code> pre>You can use Code Snippets plugin to add the code snippets to your site.您可以使用代码段插件将代码段添加到您的网站。 p>WordPress Filters WordPress过滤器 h4>ArticleJsonLd\post_json_ld_data A filter for a post JSON-LD data. ArticleJsonLd \ post_json_ld_data code>用于发布JSON-LD数据的过滤器。 li>ArticleJsonLd\post_author_json_ld_data A filter for a post author JSON-LD data. ArticleJsonLd \ post_author_json_ld_data code>帖子作者JSON-LD数据的过滤器。 li>ArticleJsonLd\post_publisher_json_ld_data A filter for a post publisher JSON-LD data. ArticleJsonLd \ post_publisher_json_ld_data code>用于发布者JSON-LD数据的过滤器。 li> ul>Contributing贡献 h4>Developers can contribute to the source code on the Github Repository.开发人员可以在 Github存储库上为源代码做出贡献。 p>Requirements要求 h4>The plugin requires PHP 5.4+ and WordPress 4.4+.该插件需要PHP 5.4+和WordPress 4.4 +。 p>Supported By支持者 h4>Arageek website. Arageek 网站。 li> ul>
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');}}
/**
/ **
* @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');
}
code> pre>
You can use Code Snippets plugin to add the code snippets to your site.
您可以使用代码段插件将代码段添加到您的网站。 p>
ArticleJsonLd\post_json_ld_data
ArticleJsonLd \ post_json_ld_data code>用于发布JSON-LD数据的过滤器。 li>ArticleJsonLd\post_author_json_ld_data A filter for a post author JSON-LD data. ArticleJsonLd \ post_author_json_ld_data code>帖子作者JSON-LD数据的过滤器。 li>ArticleJsonLd\post_publisher_json_ld_data A filter for a post publisher JSON-LD data. ArticleJsonLd \ post_publisher_json_ld_data code>用于发布者JSON-LD数据的过滤器。 li>
ArticleJsonLd\post_author_json_ld_data
ArticleJsonLd \ post_author_json_ld_data code>帖子作者JSON-LD数据的过滤器。 li>ArticleJsonLd\post_publisher_json_ld_data A filter for a post publisher JSON-LD data. ArticleJsonLd \ post_publisher_json_ld_data code>用于发布者JSON-LD数据的过滤器。 li>
ArticleJsonLd\post_publisher_json_ld_data
ArticleJsonLd \ post_publisher_json_ld_data code>用于发布者JSON-LD数据的过滤器。 li>
ul>
Developers can contribute to the source code on the Github Repository.
开发人员可以在 Github存储库上为源代码做出贡献。
p>
The plugin requires PHP 5.4+ and WordPress 4.4+.
该插件需要PHP 5.4+和WordPress 4.4 +。 p>
ol>
原文出处:http://www.sanshu.cn/a/2810.html
群主管理都是支付大佬