开发者 | sethsm |
---|---|
更新时间 | 2025年8月11日 02:03 |
捐献地址: | 去捐款 |
PHP版本: | 7.2 及以上 |
WordPress版本: | 6.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
header.php
).itemscope
, itemtype
, and itemprop
attributes and converts them into a well-structured JSON-LD script.<head>
.microdata-to-json-ld-converter
folder to the /wp-content/plugins/
directory.Settings > Microdata to JSON-LD
to configure the plugin.You have two main options:
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.
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.
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.
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.
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).
Use the Microdata to JSON-LD Converter in 5 easy steps.
itemscope
attributes for cleaner HTML output.→
and ·
are now saved correctly to the database and render properly in the final front-end script.itemprop
attributes (e.g., itemprop="caption description"
) by splitting them into two distinct properties.JSON_UNESCAPED_UNICODE
to ensure special characters display correctly in all validators./includes
directory for better organization.the_content
, for more comprehensive removal.@context
is always present in the generated JSON-LD.