{"id":51895,"date":"2016-11-04T00:44:19","date_gmt":"2016-11-04T00:44:19","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/article-json-ld\/"},"modified":"2020-10-22T17:26:41","modified_gmt":"2020-10-22T17:26:41","slug":"article-json-ld","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/article-json-ld\/","author":5941287,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3","stable_tag":"0.3","tested":"5.5.18","requires":"5.0","requires_php":"","requires_plugins":"","header_name":"Article JSON-LD","header_author":"Nashwan Doaqan","header_description":"","assets_banners_color":"","last_updated":"2020-10-22 17:26:41","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/nash-ye\/wp-article-json-ld","header_author_uri":"https:\/\/profiles.wordpress.org\/alex-ye\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1993,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"0.2":{"tag":"0.2","author":"alex-ye","date":"2016-11-05 09:40:33"},"0.2.1":{"tag":"0.2.1","author":"alex-ye","date":"2016-11-05 09:40:33"},"0.3":{"tag":"0.3","author":"alex-ye","date":"2020-10-22 17:26:41"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2","0.2.1","0.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2516,3001,2998,2991,186],"plugin_category":[55],"plugin_contributors":[80699],"plugin_business_model":[],"class_list":["post-51895","plugin","type-plugin","status-publish","hentry","plugin_tags-json-ld","plugin_tags-microdata","plugin_tags-rich-snippets","plugin_tags-schema-org","plugin_tags-seo","plugin_category-seo-and-marketing","plugin_contributors-alex-ye","plugin_committers-alex-ye"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/article-json-ld.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>It will automatically insert the JSON-LD script in your site <code>&lt;head&gt;<\/code> tag by using the standard information provided by WordPress, such as the title, description, featured image, publish date, author, categories..etc.<\/p>\n\n<p>You can support your custom post types or modify the data easily by using the plugin's hooks.<\/p>\n\n<h4>Custom-Post-Types Support<\/h4>\n\n<p>By default, the plugin supports the <code>post<\/code> post-type. Add support for other custom-post-types using a code snippet as the example below:<\/p>\n\n<pre><code>add_action('init', 'add_article_json_ld_post_type_support', 15);\n\n\/**\n * @return void\n *\/\nfunction add_article_json_ld_post_type_support()\n{\n    add_post_type_support('custom-post-type', 'article-json-ld');\n}\n<\/code><\/pre>\n\n<p>You can use <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\">Code Snippets<\/a> plugin to add the code snippets to your site.<\/p>\n\n<p>An active demo is available on <a href=\"https:\/\/www.arageek.com\/\">Arageek<\/a> articles.<\/p>\n\n<h4>Plugin's Hooks<\/h4>\n\n<ul>\n<li><code>ArticleJsonLd\\post_json_ld_data<\/code> A filter for a post JSON-LD data.<\/li>\n<li><code>ArticleJsonLd\\post_author_json_ld_data<\/code> A filter for a post author JSON-LD data.<\/li>\n<li><code>ArticleJsonLd\\post_publisher_json_ld_data<\/code> A filter for a post publisher JSON-LD data.<\/li>\n<\/ul>\n\n<h4>Contributing<\/h4>\n\n<p>Developers can contribute to the source code on the <a href=\"https:\/\/github.com\/nash-ye\/wp-article-json-ld\">Github Repository<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload and install the plugin<\/li>\n<li>Use the plugin WP filters to customize the data.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.3<\/h4>\n\n<ul>\n<li>Add compatibility for latest version of WordPress SEO by Yoast.<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>Add the 'description' property and use <code>get_the_excerpt()<\/code> to get the value.<\/li>\n<li>Use the ISO 8601 format for 'datePublished' and 'dateModified' properties.<\/li>\n<li>Use <code>get_the_title()<\/code> to get the `headline' property value.<\/li>\n<li>Some fixes and minor enhancements.<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>The Initial version.<\/li>\n<\/ul>","raw_excerpt":"A straightforward solution to add Schema.org microdata as a JSON-LD script on your site posts.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/51895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=51895"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/alex-ye"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=51895"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=51895"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=51895"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=51895"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=51895"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=51895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}