Article JSON-LD

A straightforward solution to add Schema.org microdata as a JSON-LD script on your site posts.

Author:Nashwan Doaqan (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:5.5.5
Plugin version:0.3
Added to WordPress repository:04-11-2016
Last updated:22-10-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://github.com/nash-ye/wp-article-json-ld
Total downloads:1 446
Active installs:10+
plugin download
Click to start download

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.


ChangeLog