Articles Anywhere

Remove html comment from output

4 months 3 weeks ago #89265

TVBZ's Avatar TVBZ

Hello,

I am using articles anywhere to add some JSON-LD to my page:

<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "FAQPage",
    "mainEntity": [
		{articles category="faq"}
		{
        "@type": "Question",
        "name": "[title]",
        	"acceptedAnswer": {
            	"@type": "Answer",
            	"text": "[text]"
        	}
    	}
		{if has_next},{/if}
        {/articles}
]
}
</script>

But the plugin adds some html comment which breaks the output JSON.

How to remove the <! -- START: Articles Anywhere -- > and <! -- END: Articles Anywhere -- >?

Many thanks

4 months 3 weeks ago #89267

Peter van Westen's Avatar Peter van Westen Admin

You can switch off the "Place HTML comments" in the Articles Anywhere system plugin settings.

4 months 3 weeks ago #89269

TVBZ's Avatar TVBZ

Hah 😲 Thanks! 😎