It’s a very frustrating moment, you have just finished your awesome tutorial on how to use AFrame. You want to embed an example on your webpage because that’s what AFrame is for. So you go to the text editor and you painstakingly write your demo code perfectly. Then you switch to the visual editor and… It’s gone! All your code is gone! Your masterpiece! Your… Ok, Enough dramatics. So I have figured out how to embed AFrame and pretty much anything else using a simple plugin as you can see below:
It’s called Shortcoder.
How it works is you first create a new shortcode in the shortcoder settings and put all your code inside it:
And then you embed your embedded code in your article like this:
([)sc name="nameOfShortcode" (])
*remove the parenthesizes, they were so the code didn’t work and become invisible.