@type being deleted on update after text edit
-
I am trying to add this piece of LD+JSON in the wordpress text editor:
\ <script type=”application/ld+json”>
{ “@context”: “https://schema.org”,
“@type”: “Article”,
“headline”: “[article title]”,
“alternativeHeadline”: “[article sub heading]”,
“image”: “[main article image url]”,
“author”: “[author name]”,
“datePublished”: “[date in ISO format e.g. 2014-03-16]”,
“description”: “[article summary]”
}
</script>
\It pastes in OK but when I hit update and then look at the text editor it has done this:
\
<script type=”application/ld+json”>
{ “: “https://schema.org”,
“: “Article”,
“headline”: “[article title]”,
“alternativeHeadline”: “[article sub heading]”,
“image”: “[main article image url]”,
“author”: “[author name]”,
“datePublished”: “[date in ISO format e.g. 2014-03-16]”,
“description”: “[article summary]”
}
</script>\
I thought that the text editor would allow you to enter code without interfering with it?
I have tried disabling all plugins to no avail.
Driving me nuts!!!
Mike
- The topic ‘@type being deleted on update after text edit’ is closed to new replies.