Unity Webplayer Embed in Wordpress Page

I’m trying to embed a webplayer into a Wordpress page using the HTML editor. I am confident that I have the code correct, but it always shows the “Install Unity WebPlayer” button, even though it is already installed.

I’ve also tried using the Wordpress Plugin provided by Unity, and the updated version for Unity 3 created by Adam Zwakk. I get the same result.

Has anyone had success doing this?

Embed without any plugin the easiest way I found :slight_smile: http://unity3diy.blogspot.com/2014/11/embed-unity3d-game-on-wordpress-web.html

I did it. I posted here

I used the Wordpress plugin. I encountered this problem and it turned out it was using the wrong path; the wordpress page might not be pulled from the same path where your file is. I typed code like so:

[WP_UnityObject src="http://www.noblemuffins.com/demos/synergyBladeWeb.unity3d" width="680" height="510" /]

With the full path into the Wordpress editor. No HTML or JS or nothing.

I tried the Wordpress plugin for Unity 3 one more time and got it to work, although it does have an incorrect line of code that makes height=width, regardless of what you use for a height value. To fix that problem you need to replace:

unityObject.embedUnity("unityPlayer", "'.substr($tUOParams[0],5,-1).'", '.substr($tUOParams[1],7,-1).', '.substr($tUOParams[1],7,-1).');

with:

unityObject.embedUnity("unityPlayer", "'.substr($tUOParams[0],5,-1).'", '.substr($tUOParams[1],7,-1).', '.substr($tUOParams[2],8,-1).');

http://forum.unity3d.com/threads/182372-UnityDog-Wordpress-Plugin/page2