Embeding SWF In WordPress Posts

You can easily embed SWF file inside your WordPress post either by using a plugin or by using WP hack.

Using WordPress Plugin:

  1. Open your Dasboard
  2. Visit Plugins >> Add New and Search for Easy Flash Embed plugin.
  3. Install and Activate it.

Use the following shortcode for embedding your SWF file in your posts:

[swf src=”http://www.example.com/file.swf” width=200 height=50]

Note: In the given shortcode replace the link address to your own SWF file address and adjust the height and width as per your needs.

Using WordPress Hack:

Here is your WP Hack. Use following code for embedding Flash directly into WordPress pages and posts etc:

<object id=”flashcontent”
classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″
width=”550px”
height=”400px”>
<param name=”movie” value=”movie.swf” />
<!–[if !IE]>–>
<object type=”application/x-shockwave-flash”
data=”movie.swf”
width=”550px”
height=”400px”>
<!–<![endif]–>
<p>
Text written here will only be visible if the SWF fails to load.
</p>
<!–[if !IE]>–>
</object>
<!–<![endif]–>
</object>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.