WordPress HTML editor (tinyMCE) treats schema.org attributes like itemscope/itemtype/itemprop as invalid HTML attributes and strips them when you save the post or page content. This plugin alters this behavior and prevent the WordPress HTML editor from removing the schema.org/microdata markup.
@azaozz suggested the solution. See the issue discussion here: https://core.trac.wordpress.org/ticket/27931
Just install the plugin as usually and activate it. Once activated, it will keep your markup from being removed by the HTML editor. No setup required.
Contributors & Developers
“Protect schema.org markup in HTML editor” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Added support for the “content” attribute for the “time” tag
- Fixed error “Notice: Undefined index: extended_valid_elements”
Fixed src attribute being removed from img tag.
Fixed schema.org attributes being removed from article and p tags.
Fixed schema.org attributes being removed from img tags.