I'm trying to embed a pdf document in a wordpress post using
<iframe src="https://path.to/my.pdf" height="900" width="1200"></iframe>
The embedded document shows up in the preview while editing when using the visual editor, but it doesn't show up when I publish the post.
Also, when I open the post for re-editing, the <iframe>
block is missing.
Following the answers here I also tried using <embed>
and <object>
, the result is the same.
Am I doing something wrong?