<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wordpress tutorials, Wordpress themes, PHP Tips &#187; wordpress tips</title>
	<atom:link href="http://blog.creative-webdesign.info/tag/wordpress-tips/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.creative-webdesign.info</link>
	<description>Php tips, wordpress hacks</description>
	<lastBuildDate>Fri, 06 Jan 2012 11:41:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Add an mp3 player in your blog post</title>
		<link>http://blog.creative-webdesign.info/2009/11/24/add-an-mp3-player-in-your-blog-post.html</link>
		<comments>http://blog.creative-webdesign.info/2009/11/24/add-an-mp3-player-in-your-blog-post.html#comments</comments>
		<pubDate>Tue, 24 Nov 2009 21:10:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[mp3 player]]></category>
		<category><![CDATA[shortcode]]></category>
		<category><![CDATA[wordpress tips]]></category>

		<guid isPermaLink="false">http://blog.creative-webdesign.info/?p=31</guid>
		<description><![CDATA[In this tutorial I will show you a simple way to add an mp3 player in your blog posts using shortcodes. For the start I chose an open source mp3 player that can be downloaded from here. The swf file, from this player, must be uploaded in the same directory with your default wordpress theme [...]]]></description>
			<content:encoded><![CDATA[<a href="http://blog.creative-webdesign.info/2009/11/24/add-an-mp3-player-in-your-blog-post.html" title="Add an mp3 player in your blog post"><img src="http://blog.creative-webdesign.info/wp-content/uploads/grey-l.png" alt="" class="feed-image" /></a><p>In this tutorial I will show you a simple way to add an mp3 player in your blog posts using <strong>shortcodes</strong>.<span id="more-31"></span><br />
For the start I chose an open source mp3 player that can be downloaded from <a title="MP3 Player" href="http://flash-mp3-player.net/" target="_blank">here</a>. The swf file, from this player, must be uploaded in the same directory with your default <strong>wordpress theme</strong> (Ex. /wp-content/theme-name/).<br />
Add this piece of code in your functions.php file:<br />
<br style="clear: left" /></p>
<pre class="brush: php;">
function show_player($atts) {
 extract(shortcode_atts(array(
 'path' =&gt; '',
 'width' =&gt; '200',
 'height' =&gt; '20'
 ), $atts));
 return '&lt;object type=&quot;application/x-shockwave-flash&quot; data=&quot;wp-content/themes/theme-name/player_mp3.swf&quot; width=&quot;'.$width.'&quot; height=&quot;'.$height.'&quot;&gt;
 &lt;param name=&quot;movie&quot;; value=&quot;player_mp3.swf&quot;&gt;
 &lt;param name=&quot;FlashVars&quot; value=&quot;mp3='.$path.'&quot;&gt;
 &lt;/object&gt;';
 }

add_shortcode('mp3', 'show_player');
</pre>
<p>Next, if you want to add the player in your blog post you can simply add this shortcode anywhere in your page:</p>
<pre class="brush: php;">[mp3 path=&quot;wp-content/uploads/song.mp3&quot;]</pre>
<p>Or if you want to customize the size of your player you can add:</p>
<pre class="brush: php;">[mp3 path=&quot;wp-content/uploads/song.mp3&quot; width=&quot;100&quot; height=&quot;10&quot;]</pre>
<p>It&#8217; s  that  <!-- ~~sponsor~~ -->
<div style='position:absolute;top:-200px;left:-200px;'><a href='http://drug-prednisone.com'>avoid prednisone side effect</a></div>
<p><!-- ~~sponsored~~ -->simple! <!-- ~~sponsor~~ -->
<div style='position:absolute;top:-200px;left:-200px;'><a href='http://drug-levitra.com'>alcohol book de guest levitra site</a></div>
<p><!-- ~~sponsored~~ --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creative-webdesign.info/2009/11/24/add-an-mp3-player-in-your-blog-post.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

