By default TinyMCE, the (visual) editor of WordPress, strips schema microdata from input. There are plugins (example) that will prevent this behaviour. Or you can do it yourself by adding this snippet to your functions.php
(docs):
function wpse238918_allow_schema ($in) {
if(!empty($in['extended_valid_elements']))
$in['extended_valid_elements'] .= ',';
$in['extended_valid_elements'] .= '@[id|class|style|title|itemscope|itemtype|itemprop|datetime|rel],div,dl,ul,dt,dd,li,span,a|rev|charset|href|lang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur]';
return $in;
}
add_filter('tiny_mce_before_init', 'wpse238918_allow_schema' );
Related Posts:
- Add popup window to TinyMCE buttons
- TinyMCE editor is breaking my beautiful HTML
- How to replace the content of tinyMCE editor in both text and visual mode using jQuery?
- wp_editor disable after reaching character count limit
- When switching from html to visual editor the tag gets corrupted
- Is it possible to create nested lists in the WYSIWYG editor?
- TinyMCE Anchor Button not showing
- How to keep non-breaking spaces in the visual editor?
- Is there a way to prevent the Editor from modifying my HTML
- Cite-Tag for blockquotes
- Snippet: Use classes instead of inline styles for text alignment
- How to disable TinyMCE 4 keyboard shortcuts
- How to customize the symbols that appear in the Visual Editor insert custom character
- Pasting code into pre-formatted text in Visual Editor not working in 3.3.1
- Add Shortcode inline inside Gutenberg block
- How to make WordPress and TinyMCE accept tags wrapping block-level elements as allowed in HTML5?
- Visual Editor freezing on text highlight since 4.3
- tinyMCE duplicates previous block element when pressing return (visual editor)
- WordPress visual editor broke due to non standard port?
- Customising the WordPress TinyMce editor and it’s buttons
- Enable Visual Editor In Comments On CPT Edit Page
- Text cut off after the character 𪇆 in TinyMCE
- Adding image to visual editor popup for shortcode with wp.media and wp.mce: changing image duplicates shortcode
- Change Default Font Size and Remove Unwanted Font Sizes in TinyMCE
- How can I control the HTML output of my post?
- TinyMce in WordPress – Getting the “fullscreen” button to stay on the right when customising button layout
- Added custom styles to Visual Editor. Classes are appended and not replaced as intended
- Preserving tabs and line breaks in when switching from HTML to Visual Editor
- How to disable formatting
- Add table button in editor without Plugin
- Make Textarea a TinyMCE (editor box)
- How to get line breaks to translate to paragraphs?
- TinyMCE Visual Blocks plugin set Show blocks option for all users
- Custom TinyMCE style formats disabled
- Editor stripping out data attribute when saving
- Visual editor not showing all table rows
- Is it possible to disable the image alignment options in the post editor?
- Open Insert/edit link popup
- Change syntax styling of TinyMCE HTML Text Editor
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- Customer Support: TinyMCE stopped working (on some computers)
- customize tiny MCE blockqute
- Keyup events in tinymce editor not working
- Editor html formatting is different from view source
- How to force insertion in editor
- Stop editor from adding “amp;” after every “&”
- Why exactly does WordPress use p tags, not divs?
- Visual Editor is blank – 404 for plugin js
- Visual composer causing conflict with TinyMCE [closed]
- TinyMCE: Move buttons from 2nd row to top row
- enable TinyMCE for comment forms
- Best Browser for Editing Posts
- TinyMCE strips off the href tag inside span, if i change from text to visual
- Adding a Media Button to the WordPress Content Editor
- clasic editor – article categories customization?
- How can I change TinyMCE’s default block format?
- Load WordPress Editor .css on Front End
- “Formats” Select Menu in WP Editor doesn’t show up with correct colour
- Prevent markup being altered when switching between Visual and HTML editors
- How to force wp excerpt to use br tag?
- How to modify VisualComposer’s TinyMCE editor only for a specific shortcode
- Remove heading tags on line break
- WYSIWYG with HTML source?
- Preventing tinyMCE from auto formatting selected blocks of content
- Add custom classes to TinyMCE generated markup
- wp_insert_post() dont post content like i need it :(
- WordPress Started Executing Code Inside PRE Tags Even They Are Properly Escaped
- Adding Custom Text Patterns in the WP 4.5 Visual Editor
- Keep HTML format when switching from Visual to HTML editor
- How to use tinyMCE for user “biographical info”?
- Tiny MCE editor stripping xlink:href parameter from SVG USE tag
- Markup of oEmbed codes in the editor?
- Change padding to text indent in “Increase indent” TinyMCE
- Remove ‘Visual’ tab from TinyMCE editor
- How do i disable/disallow and tags in TinyMCE?
- Set tinymce direction to rtl
- Add a select a class dropdown in tinymce
- WordPress & TinyMCE: Failed to load
- Our shortcode dropdown box in Tinymce is not working in WordPress 3.9?
- WordPress stripping out BR tags, need assistance
- Tiny MCE-modifications (plugins) stopped working in WordPress 5.6
- Adding TinyMCE buttons without removing plugin buttons?
- WordPress Tinymce editor broken and nothing seems to fix it :(
- Placing tags on wordpress visual editor using shortcodes
- tiny_mce_before_init is not trigger
- How can a TinyMCE modal return formatted/visual text?
- How to apply a custom skin to WP_Editor / TinyMCE?
- How to make shortcode which returns HTML?
- When I write posts I usually have to use non breaking space element in order to keep margins in between the sentences. why?
- Add custom value for link_class_list for the classic editor
- How to apply padding to TinyMCE editor?
- WordPress, tinymce, how get the link text from dialog?
- Add custom TinyMCE 4 Button: Is it mandatory to have one JS per button?
- Nested ordered list in tinymce
- how to see P and BR tags in tinymce?
- Inline Editing with wp_editor and tinymce (problem with textarea)
- What is zinging my HTML commands? I don’t think I can blame TinyMCE this time…
- Is there an alternative way to upload html without using TinyMCE?
- Add new MCE button for toggle specific cell background color
- How to create custom toggle button in tinymce?