<?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>Weblash.net &#187; plug-in</title>
	<atom:link href="http://weblash.net/tag/plug-in/feed/" rel="self" type="application/rss+xml" />
	<link>http://weblash.net</link>
	<description>Graphic Design &#38; Web Development for Small Businesses</description>
	<lastBuildDate>Mon, 18 Jul 2011 13:03:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Using Shortcodes for Plug-ins in WordPress</title>
		<link>http://weblash.net/228/using-shortcodes-for-plug-ins-in-wordpress/</link>
		<comments>http://weblash.net/228/using-shortcodes-for-plug-ins-in-wordpress/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 13:44:11 +0000</pubDate>
		<dc:creator>WeblashAdmin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[plug-ins]]></category>
		<category><![CDATA[add_shortcode]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[shortcode]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://weblash.net/?p=228</guid>
		<description><![CDATA[First step:  read the shortcode API reference in WordPress Codex. I had a difficult time figuring out exactly where to place the &#8220;add_shortcode&#8221; function call. Second step:  Place the “add_shortcode(‘shortcut name’, ‘shortcut function’);” to the same place you put your add_action and add_filter calls &#8212; I&#8217;m basing this off the excellent tutorial I found &#8212; [...]]]></description>
			<content:encoded><![CDATA[<p>First step:  read the shortcode API reference in <a href="http://codex.wordpress.org" target="_blank"></a><a href="http://codex.wordpress.org/Shortcode_API" target="_blank">WordPress </a>Codex. I had a difficult time figuring out exactly where to place the &#8220;add_shortcode&#8221; function call.</p>
<p>Second step:  Place the “add_shortcode(‘shortcut name’, ‘shortcut function’);” to the same place you put your <em>add_action</em> and <em>add_filter</em> calls &#8212; I&#8217;m basing this off the excellent tutorial I found &#8212; &#8220;<a href="http://www.devlounge.net/extras/how-to-write-a-wordpress-plugin" target="_blank">How to Write a WordPress Plug-in</a>&#8220;:</p>
<p><code>//add actions<br />
add_action('admin_menu', 'DevloungePluginSeries_ap');<br />
add_action('wp_head', array(&amp;$dl_pluginSeries, 'addHeaderCode'), 1);<br />
add_action('activate_devlounge-plugin-series/devlounge-plugin-series.php',  array(&amp;$dl_pluginSeries, 'init'));</code></p>
<p><code>//Filters<br />
add_filter('the_content', array(&amp;$dl_pluginSeries, 'addContent'),1);<br />
add_filter('get_comment_author', array(&amp;$dl_pluginSeries, 'authorUpperCase'));</code></p>
<p><code>//Shortcodes<br />
add_shortcode('shortcodename', array(&amp;$dl_pluginSeries, 'function'));</code></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://www.devlounge.net/extras/how-to-write-a-wordpress-plugin</div>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Share this</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bloglines.com/sub/http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F" rel="nofollow" title="Add to&nbsp;Bloglines"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/bloglines.png" title="Add to&nbsp;Bloglines" alt="Add to&nbsp;Bloglines" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F&amp;submitHeadline=Using+Shortcodes+for+Plug-ins+in+WordPress&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F&amp;title=Using+Shortcodes+for+Plug-ins+in+WordPress" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F&amp;title=Using+Shortcodes+for+Plug-ins+in+WordPress" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://FriendSite.com/users/bookmarks/?u=http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F&amp;t=Using+Shortcodes+for+Plug-ins+in+WordPress" rel="nofollow" title="Add to&nbsp;FriendSite"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/friendsite.png" title="Add to&nbsp;FriendSite" alt="Add to&nbsp;FriendSite" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F&amp;title=Using+Shortcodes+for+Plug-ins+in+WordPress" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F&amp;bm_description=Using+Shortcodes+for+Plug-ins+in+WordPress" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F&amp;title=Using+Shortcodes+for+Plug-ins+in+WordPress" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F&amp;title=Using+Shortcodes+for+Plug-ins+in+WordPress" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Using+Shortcodes+for+Plug-ins+in+WordPress+@+http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fweblash.net%2F228%2Fusing-shortcodes-for-plug-ins-in-wordpress%2F&amp;t=Using+Shortcodes+for+Plug-ins+in+WordPress" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://weblash.net/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://weblash.net/228/using-shortcodes-for-plug-ins-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

