• When I try to embed a link, WP returns “Sorry, this content could not be embedded”.

    Running WordPress 5.4.2

    I also tried the iframe embed and html embed as well as generating an html in python and pasting that into a custom html block. The latter renders in preview but not in the page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same problem here – set up the domain, hosting, and site simply so I could embed plotly files I want to share for a paper we’re writing to only now find it doesn’t work. Expensive mistake…
    Can’t seem to embed the page as html either unless I’m doing something wrong there.
    Any help would be greatly appreciated

    Thread Starter nathancraig

    (@nathancraig)

    I got some plotly files working well under wp by taking a slightly different route. I went with embed, and hosted the files on our server. Under the root of our WP install, I created a different dir just for html files. Plotly files are created with the fig.write_html() function and are pushed to this dir on the server with pysftp library. Then the plots are embedded in WP using <iframe>. Plot dimensions can be controlled when writing the files and are reflected in the html. The include_plotlyjs='cdn' argument of fig.write_html() helps keep the html file sizes smaller, but visitors must be online–which isn’t really a problem. On a side note, we used column blocks to stack figures up side by side. All in all, this seems to work pretty well. While the solution may not be ideal because iframe may carry some risks, so do additional plugins. Keep in mind also that the html file produced by fig.write_html() can be further edited. Good luck, hope you figure something out.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin not working with WordPress 5.4.2’ is closed to new replies.