First time here?

You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting!

After looking at the options available for WordPress plugins for Silverlight, I found one that was outdated and the author’s URL looked to be broken.  So I adapted/updated the plugin to work again.

I’ve now provided the Silverlight Plugin for WordPress for an easy way to host Silverlight applications within your WordPress content.  You can get the plugin via the WordPress plugin directory by searching on Silverlight or clicking here.

Once downloaded, unzip the contents in your /wp-content/plugins directory.  You’ll then be able to activate the plugin and start working with it.  Adding content is as simple as adding this text to your post:

[silverlight: myapp.xap]

And you will have your content in your post.  You can optionally specify the width, height and minimum Silverlight version required.

Version 1.0.3 (31 MAR 2009) includes:

  • Ability to add local/absolute Silverlight applications (XAP)
  • Optionally set width/height/minRuntimeVersion of the Silverlight host plugin
  • Optionally provide initParams to the plugin

Silverlight Media Player (new 2010!)

I also have a Silverlight Media Player for WordPress which is built on top of the Silverlight Media Framework.  It is also as simple as tagging content and supports any Silverlight-supported video type, including IIS Smooth Streaming:

[sl-media: http://mysite.com/myhomemovie.mp4]

You can find this and the installation/configuration details page in the WordPress plugin directory as well!

Please leave a comment for things you’d like to see or bugs you find!

This work is licensed under a Creative Commons Attribution By license.

3/28/2009 9:03 AM | # re: Silverlight Plugin for WordPress
Peter -- ah darn! I didn't see yours -- I was looking in the WordPress plugin directory. I'll add your name to my plugin as a contributor if you don't mind. Your link isn't broken, but the one that was listed in the directory was.
3/28/2009 11:44 AM | # re: Silverlight Plugin for WordPress
thanks for your response. It is not necessary to add my name. But I am proud to got a personal answer from "The Tim Heuer". I hope I can meet you some times in your own a dive shop in Cancun (In the next 5 Years).
3/28/2009 4:26 PM | # re: Silverlight Plugin for WordPress
Hi Tim,
The link for the plugin seems to be broken.
But I'll try back again later.
3/28/2009 4:56 PM | # re: Silverlight Plugin for WordPress
I don't currently use Wordpress... but would like to try it out. Is a plugin like this possible when hosted through Wordpress.com or do you have to host the blog yourself?
3/28/2009 5:08 PM | # re: Silverlight Plugin for WordPress
David -- good question. At least on my free test account it looks like plugins are disabled. Take a look here though for getting WordPress setup quickly on Windows: timheuer.com/.../...es-web-platform-installer.aspx
3/28/2009 11:22 PM | # Silverlight Plugin for WordPress
Good work Buddy i am gonna try this one
3/29/2009 1:25 AM | # re: Silverlight Plugin for WordPress
Hi Tim,

thanks for refering to my "old" silverlight in wordpress plugin. i've implemented this one a year ago for some test reasons and descided to put in on the wordpress library. i think i've already lost the source ;)

thanks for contributing and keep it up.
greetz, juergen
4/23/2009 5:40 PM | # re: Silverlight Plugin for WordPress
I really like your plugin, but what I want to be able to do is upload my Silverlight app and then reference the resource in your metatag, maybe by attachment ID or something. Optimally, I would be able to insert it directly into my post from the gallery page.

Thanks, and great work.
5/5/2009 10:12 PM | # re: Silverlight Plugin for WordPress
how do we do insert two silverlight applications in one page???
5/6/2009 7:12 AM | # re: Silverlight Plugin for WordPress
Alomohora -- just enter the code you want for each one.
6/5/2009 10:02 AM | # re: Silverlight Plugin for WordPress
Hi Tim,

Thank you for the plugin. I have a question...
You said that to include the application this line should be written [silverlight: myapp.xap], however it is required to have the XAP application in the same directory as the plugin or can it be in a different place.

Something like:
[silverlight: http://YYYY/myapp.aspx] or
[silverlight: ../../myapp.xap] is this possible ?

Thank you.
8/2/2009 5:59 AM | # re: Silverlight Plugin for WordPress
Thank u, very nice plugins
10/30/2009 3:33 AM | # re: Silverlight Plugin for WordPress
hi. nice plugin so far. but unfortunatelly there is nowhere mentioned, that you have to set the url relative and a "./" is placed in front of the url. also so have the settings for "background" and "onerror" where nice!
10/30/2009 9:04 AM | # re: Silverlight Plugin for WordPress
df - yes the plugin actually assumes an absolute URL -- i should be clear on the installation instructions.
1/31/2010 7:37 AM | # re: Silverlight Plugin for WordPress
This is look interesting. I've been using Wordpress but I never tried to use Silverlight Plugin for WordPress. I would like to try this application and then to suggest to all my friend who use Wordpress.

Thanks Tim, your post is great. I looking forward to see a new topics and ideas on your site.
3/23/2010 2:33 PM | # re: Silverlight Plugin for WordPress
Funny, all I get in my post is exactly what I typed in:

[silverlight: myapp.xap]

Why doesn't it just work to cut/paste the code between (and including) the <object> tags in the default.html file that is generated by Expression Blend? When I try that, nothing shows up even when trying an absolute reference to the .xap file.
5/21/2010 4:47 AM | # re: Silverlight Plugin for WordPress
I just couldn't get this plugin to work in my WordPress installed on IIS 7 using the Web Platform Installer.
I've been troubleshooting this for the longest time because the SMF player just wouldn't play, I tried all kinds of ways like re-encoding my video to H.264 encoded media in an MP4 container (using Expression Encoder), changing parameters like autoload=true, but to no avail.

Guess what fixed it? I edited the wordpress\wp-content\plugins\silverlight-media-player\sl-media-player.php and just added a "./" in front of the XAP relative path". That fixed it. Make sure you have the following:
<param name="source" value="./wp-content/plugins/silverlight-media-player/SmfSimplePlayer.xap"/>
5/21/2010 9:41 AM | # re: Silverlight Plugin for WordPress
Faister -- thanks for the note -- yes this assumes that your WP site is your ROOT site (which is mostly the case)
5/24/2010 8:48 AM | # re: Silverlight Plugin for WordPress
Asavage -- yes do you have a link I can look at to let you know what you have wrong?
5/25/2010 11:32 AM | # re: Silverlight Plugin for WordPress
I am using silverlight gallery plugin for wordpress. (wordpress.org/extend/plugins/silverlight-gallery) can i set to autoscroll the images?
6/1/2010 6:18 AM | # re: Silverlight Plugin for WordPress
Hi Tim, quick newbie question:
Does this works although my wordpress site is NOT hosted on IIS/windows based hosting? Or should I move from my current Apache to Windows?

Does anyone have any test-working WP site using this plugin?
Thanks in advance!
11/11/2010 1:04 PM | # re: Silverlight Plugin for WordPress
Is it possible to set the windowless param using your plugin? I need to use this for a silverlight app that requires this to be set to true.
11/11/2010 1:44 PM | # re: Silverlight Plugin for WordPress
Actually, I just went ahead and added windowless as a 5th parameter to my local copy of your silverlight.php file and that worked :)
12/13/2010 11:49 AM | # re: Silverlight Plugin for WordPress
Hi, it works great for one player on one page,
but I want to put multiple players on one page and the first one seem to work,
the others doesn't and shows the tag like I entered in the wordpress-editor:
[silverlight: http://embed.player.xxx.nl/sle/ugslplayer.xap, 530, 306, episodeID=9865189]

How can I put multiple video's on one page ?
1/3/2011 5:31 PM | # re: Silverlight Plugin for WordPress
Does your media player support Live Smooth Streaming via IIS? Link would be http://some.server.com/live/file.isml/Manifest. I cant seem to get it to work. It is a h264 stream.....
2/13/2011 9:34 AM | # re: Silverlight Plugin for WordPress
I am having the same problem as Mike with Smooth Streaming via IIS. I followed the syntax [sl-media: http://some.server.com/media/files.ism/maifest, 640, 480, true] and what I get is the player but when I click on play nothing plays at all. Any idea on what can be the issue. Has anyone else seen this?
2/24/2011 10:30 PM | # re: Silverlight Plugin for WordPress
This is Really a nice information and Thank you for such a valuable article. I really appreciate for this great information.
mens health | Go Seeq Search Engines
3/23/2011 7:04 AM | # re: Silverlight Plugin for WordPress
We solved the multiple instances on one page problem internally...

Replace lines 21, 22:
$found_pos = strpos($content, SILVERLIGHT_MEDIA_START);
if(!$found_pos) return ($content);

$found_pos = strpos($content, SILVERLIGHT_MEDIA_START);
while ($found_pos !== false) {

Then replace lines 71, 72:
$output .= "<br />" . substr($content, strpos($content, SILVERLIGHT_MEDIA_END, $found_pos)+1);
return ($output);

$end_pos = strpos($content, SILVERLIGHT_MEDIA_END, $found_pos)+1;
$output .= "<br />" . substr($content, $end_pos);
$content = $output;
$found_pos = strpos($content, SILVERLIGHT_MEDIA_START, $end_pos);
return ($content);

4/17/2011 9:48 PM | # re: Silverlight Plugin for WordPress
Great news update!! I am wondering how you guys manage to find such kind of information so early. Certainly helpful for me and other readers also as I am finding so many good comments here.
kawasaki kfx 700 manual

4/18/2011 6:56 AM | # re: Silverlight Plugin for WordPress
Hi, If i am emebdding an XAP file within a post how can
I align the xap file to align centre to the default size?
6/27/2011 12:20 PM | # re: Silverlight Plugin for WordPress
Hi, I'm about to tryout your updated silverlight plugin. Can I create multiple galleries with silverlight function added on in one page? It seems to be there are a lot of silverlight related plugins for wordpress but I'm having hard time to find a perfect one.
7/4/2011 3:32 AM | # re: Silverlight Plugin for WordPress
But silverlight is just like flash right...Why do we require a plugin?
generator installation
6/27/2012 6:16 PM | # re: Silverlight Plugin for WordPress
I was curious if it was possible to show an cover image like youtube does instead of just the blank screen?
7/17/2012 6:09 PM | # re: Silverlight Plugin for WordPress
Hi Tim -

I recently installed wordpress (two weeks ago) and I installed your plug-in today. Works great...except for IE9. The video player just shows the "loading" graphic but neer plays the video. I have tried on multiple computers in multiple locations and all are the same. Will you help? Thanks
7/18/2012 6:17 PM | # re: Silverlight Plugin for WordPress
m Miller - would be great to see the repro site.
8/29/2012 8:13 PM | # re: Silverlight Plugin for WordPress
THANK YOU for the PlugIn! Of the two in WP yours is the only functional one!
Just got done slogging thru Matthias Shapiro’s PHP, MySQL, & SilverLight tutorial and I'm ready to go! All I need are some good SilverLight dashboard examples to work on but I'm having a real time of it finding resources! All I'm getting is galleries, bits of code, and lots and lots of commercial fluff!
Can you point the way to downloadable SilverLight dashboard templates (projects) for VS2010 (*.sln and associated files) that I could build on and learn from? Thanks!

Please add 3 and 6 and type the answer here:


The opinions/content expressed on this blog are provided "ASIS" with no warranties and are my own personal opinions/content (unless otherwise noted) and do not represent my employer's view in any way.