Is it possible to embed the Manipulate into a WordPress post?

9

2

I have a Manipulate object: Manipulate[n, {n, 1, 100}]. I want to put it in my WordPress blog post. Should I CloudDeploy it as below first?

CloudDeploy[Manipulate[n, {n, 1, 100}]]

Let say I obtain the below link as output, how can I make use of it?

CloudDeploy[https://www.wolframcloud.com/objects/abcd12345-ab12-ab12-abc123456789]

I found a related video, but that was created in 2011 and was still using Mathematica 8. Besides, it is for the entire CDF file (not just a Manipulate), and it also hasn't mentioned what plugin (some Wolfram plugin?) is required to be installed in WordPress.

How can I get it done? Many thanks!

H42

Posted 2018-07-24T16:55:59.693

Reputation: 3 319

1webMathematica – vi pa – 2020-04-18T08:11:17.870

Also, I wonder if the Notebook Embedder can be used with WordPress?

– J. M.'s ennui – 2020-04-18T09:33:42.667

Answers

2

You can use an iframe within wordpress. The ones created here are using iframe within wordpress: https://sameradeeb-new.srv.ualberta.ca/introduction-to-numerical-analysis/finding-roots-of-equations/

Based on my limited experience, I recommend using only one iframe per page.

Samer Adeeb

Posted 2018-07-24T16:55:59.693

Reputation: 51

Can you provide more details on how you set up the site and deployed the Manipulate functions? Can you also confirm that the site is still working? As of today (6/11/2020) the Manipulates sit with the "Starting interactivity..." popup indefinitely. – bobthechemist – 2020-06-11T11:31:52.720

I think the issue is probably the number of iframes per page. I am finding embedding clouddeployed pages within iframes to be finicky. The following page has only one clouddeploy and it should work fine: https://sameradeeb-new.srv.ualberta.ca/introduction-to-numerical-analysis/taylor-series/#taylor%E2%80%99s-theorem10 . In our new site, I am opting for links that open in new tabs rather than iframes which seem to be more stable: https://engcourses-uofa.ca/books/numericalanalysis/finding-roots-of-equations/bracketing-methods/#bisection-method2

– Samer Adeeb – 2020-06-12T13:51:46.207

FWIW, I used this plugin and the documentation from EmbedCode to get a minimal working example. Per your suggestions, I didn't try more than one iframe on the page.

– bobthechemist – 2020-06-12T19:49:55.973

Can you share the link? thx. – Samer Adeeb – 2020-06-14T13:09:17.200

Right now it is on a private page for testing. I can update when that changes. – bobthechemist – 2020-06-14T23:17:59.127