Linux 软件免费装
Banner图

Microdata to JSON-LD Converter

开发者 sethsm
更新时间 2025年8月11日 02:03
捐献地址: 去捐款
PHP版本: 7.2 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

seo schema.org structured data Microdata json-ld

下载

1.5.5

详情介绍:

Is your WordPress theme or website built with inline Schema.org Microdata? As search engines increasingly prefer the JSON-LD format for structured data, updating your site can be a significant challenge. Manually removing old Microdata and creating new JSON-LD scripts for every page is tedious and prone to errors. The Microdata to JSON-LD Converter solves this exact problem. This plugin seamlessly automates the entire conversion process:
  1. Scans Your Pages: It fetches the full HTML of your published posts and pages, ensuring it captures all Microdata, whether it's in your post content or your theme files (like header.php).
  2. Converts to JSON-LD: It intelligently parses the itemscope, itemtype, and itemprop attributes and converts them into a well-structured JSON-LD script.
  3. Removes Inline Microdata: Optionally, it can clean up your public-facing HTML by removing the now-redundant Microdata attributes, leaving only the clean JSON-LD script in the <head>.
  4. Keeps It Fresh: With the "Keep up to date" option, the plugin can automatically regenerate the JSON-LD every time you update a post, ensuring your structured data always reflects your latest content.
Key Features: This plugin offers a seamless migration path for modernizing your site's SEO and structured data implementation, eliminating the need to edit your content, plugins, and theme files.

安装:

  1. Upload the microdata-to-json-ld-converter folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Navigate to Settings > Microdata to JSON-LD to configure the plugin.
  4. Enable the desired options, such as "Enable JSON-LD Output" and "Remove Inline Microdata from HTML".
  5. Optionally, use the "Bulk Rebuild Tools" tab to process all your existing content.

屏幕截图:

  • The "Bulk Rebuild Tools" tab, showing the post type selection and progress bar.
  • The eta box in the post editor, showing the generated JSON-LD.
  • The meta box's validation results after clicking the "Validate" button.

升级注意事项:

1.4.1 This version includes UI text improvements for better clarity on the settings page. 1.4.0 This version introduces a redesigned settings page and a more powerful schema validator.

常见问题:

How do I generate the JSON-LD for my posts?

You have two main options:

  1. Automatically: For a single post, simply open the post editor. If the post is published and no JSON-LD exists, the plugin will automatically generate it. For all posts, use the "Bulk Rebuild Tools" on the plugin's settings page.
  2. Manually: In the post editor, you can click the "Regenerate" button inside the "Schema.org JSON-LD" meta box at any time.

What does the "Keep JSON-LD up to date" option do?

When this option is enabled, the plugin will automatically regenerate the JSON-LD every single time you click "Update" on a post. This ensures your structured data always matches your content, but it will overwrite any manual changes you've made in the JSON-LD text box. If you plan to manually edit your JSON-LD, you should leave this option turned off.

Will this remove Microdata from my theme files?

The "Remove Inline Microdata from HTML" option removes the Microdata attributes from the final HTML that is sent to the user's browser. It does not edit or delete your actual PHP theme files. The original Microdata will still be in your files, but it will be invisible on the front end.

Does the 'Remove Inline Microdata' feature work with caching?

The "Remove Inline Microdata from HTML" option works by capturing the entire page output after it has been generated and before it is sent to the browser. This method, while effective, may prevent some server-side caching systems (like Varnish or NGINX FastCGI Cache) from serving cached pages. This is because the output buffer signals that the content is being dynamically modified. If you are on a managed WordPress host that utilizes this type of caching, you should test this feature to ensure there are no conflicts. Alternatively, you can keep it disabled if you notice issues with your site's cache.

Can I check if my generated JSON-LD is valid?

Yes. In the "Schema.org JSON-LD" meta box, you have two options. The "Validate" button runs a check against a built-in list of best practices for common schema types. For a complete, official analysis, use the "Test on Google" button to open the page in Google's Rich Results Test.

How is this plugin connected to the Microdata Refinement Department at LUMON?

This plugin bears no relation whatsoever to LUMON or the MDR Department on the Severed Floor. The "Microdata" processed by this plugin is a structured data markup outlined by schema.org, which has fallen out of favor and has largely been replaced by the JSON-LD format (hence, why this converter exists).

What is the recommended implementation of this plugin?

Use the Microdata to JSON-LD Converter in 5 easy steps.

  1. Open the post editor, scroll down to the box titled "Schema.org JSON-LD." Verify that the created JSON-LD matches your existing schema.org content.
  2. After you have reviewed the "Schema.org JSON-LD" meta boxes on multiple posts and pages, use the Bulk Rebuild Tools to create JSON-LD meta for each post and page on your website. This build process will take several minutes for larger sites.
  3. Within the General Settings of the Microdata to JSON-LD Settings, toggle on "Enable JSON-LD Output." Doing this will add the JSON-LD to the head element of your webpages. The content within the "Schema.org JSON-LD" meta boxes is now being added to your published posts and pages.
  4. Within the General Settings of the Microdata to JSON-LD Settings, toggle on "Remove Inline Microdata from HTML." Doing this will strip the Microdata from the HTML output of your webpages. Although this plugin removes the inline Microdata attributes from the final public-facing HTML, it will not affect your backend theme files, plugins, and content where the Microdata markups originate.
Note: To ensure that the inline Microdata does not serve as a duplicate of the new JSON-LD, both "Enable JSON-LD Output" and "Remove Inline Microdata from HTML" should be enabled in unison.
  1. To keep your JSON-LD updated going forward, toggle the option "keep JSON-LD up to date." This will ensure that your post's JSON-LD information is updated when you make changes to your posts and pages. If you have, or plan to, make manual edits within the JSON-LD meta boxes, keep this option turned off. However, in most cases, it will be helpful to automate keeping the JSON-LD up to date.

更新日志:

1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.0 1.1.0 1.0.0