<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: WordPress Quick Tips #3:Adding a Shortcode to a Sidebar Widget</title>
	<atom:link href="http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/feed/" rel="self" type="application/rss+xml" />
	<link>http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/</link>
	<description>The random musings of an indolent writer.</description>
	<lastBuildDate>Sat, 06 Feb 2010 09:45:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Edna</title>
		<link>http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/comment-page-1/#comment-15641</link>
		<dc:creator>Edna</dc:creator>
		<pubDate>Tue, 26 Jan 2010 03:38:43 +0000</pubDate>
		<guid isPermaLink="false">http://englishmike.net/?p=168#comment-15641</guid>
		<description>I am trying to get the List shortcode to configure something resembling a page rather than a list. I am not coding person.

????wish I could answer all your questions but I have not fiqured out just what they are???


Can someone give me a code to do this?

Like list the catagories in different rows accross the post page?&gt;&gt;&gt;???That is my question????</description>
		<content:encoded><![CDATA[<p>I am trying to get the List shortcode to configure something resembling a page rather than a list. I am not coding person.</p>
<p>????wish I could answer all your questions but I have not fiqured out just what they are???</p>
<p>Can someone give me a code to do this?</p>
<p>Like list the catagories in different rows accross the post page?&gt;&gt;&gt;???That is my question????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michelle</title>
		<link>http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/comment-page-1/#comment-10508</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Thu, 05 Nov 2009 21:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://englishmike.net/?p=168#comment-10508</guid>
		<description>I had the same problem but I was using echo $output; Changing it to return $output; fixed the placement. Thank you!
-Michelle</description>
		<content:encoded><![CDATA[<p>I had the same problem but I was using echo $output; Changing it to return $output; fixed the placement. Thank you!<br />
-Michelle</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mastering WordPress Shortcodes &#171; Smashing Magazine</title>
		<link>http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/comment-page-1/#comment-9543</link>
		<dc:creator>Mastering WordPress Shortcodes &#171; Smashing Magazine</dc:creator>
		<pubDate>Thu, 15 Oct 2009 15:59:34 +0000</pubDate>
		<guid isPermaLink="false">http://englishmike.net/?p=168#comment-9543</guid>
		<description>[...] Adding a Shortcode to a Sidebar Widget [...]</description>
		<content:encoded><![CDATA[<p>[...] Adding a Shortcode to a Sidebar Widget [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnau</title>
		<link>http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/comment-page-1/#comment-7857</link>
		<dc:creator>Arnau</dc:creator>
		<pubDate>Tue, 04 Aug 2009 10:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://englishmike.net/?p=168#comment-7857</guid>
		<description>Want to add a shortcode in my tagline. Any advice on how to do this will be very appreciated!</description>
		<content:encoded><![CDATA[<p>Want to add a shortcode in my tagline. Any advice on how to do this will be very appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Jacobs</title>
		<link>http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/comment-page-1/#comment-7636</link>
		<dc:creator>Andrew Jacobs</dc:creator>
		<pubDate>Thu, 23 Jul 2009 02:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://englishmike.net/?p=168#comment-7636</guid>
		<description>Found this highly helpful.  Thanks, man!</description>
		<content:encoded><![CDATA[<p>Found this highly helpful.  Thanks, man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RRG</title>
		<link>http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/comment-page-1/#comment-7019</link>
		<dc:creator>RRG</dc:creator>
		<pubDate>Fri, 05 Jun 2009 20:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://englishmike.net/?p=168#comment-7019</guid>
		<description>shortcode does not work in widgets as listed above. I&#039;ve added the code to functions.php and nothing. Maybe it just won&#039;t work for nextgen&#039;s tag system to call the [ tagcloud ] witch is worthless anyway.</description>
		<content:encoded><![CDATA[<p>shortcode does not work in widgets as listed above. I&#8217;ve added the code to functions.php and nothing. Maybe it just won&#8217;t work for nextgen&#8217;s tag system to call the [ tagcloud ] witch is worthless anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mastering WordPress Shortcodes &#124; Bookmarks</title>
		<link>http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/comment-page-1/#comment-6045</link>
		<dc:creator>Mastering WordPress Shortcodes &#124; Bookmarks</dc:creator>
		<pubDate>Mon, 20 Apr 2009 20:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://englishmike.net/?p=168#comment-6045</guid>
		<description>[...] Adding a Shortcode to a Sidebar Widget [...]</description>
		<content:encoded><![CDATA[<p>[...] Adding a Shortcode to a Sidebar Widget [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: English Mike</title>
		<link>http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/comment-page-1/#comment-4755</link>
		<dc:creator>English Mike</dc:creator>
		<pubDate>Thu, 19 Feb 2009 06:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://englishmike.net/?p=168#comment-4755</guid>
		<description>Hi Jasmine, for the output to appear in the correct place you have to return the output from the function.  &quot;the_ID()&quot; has an echo statement inside it, so your shortcode content is output (as you saw) but in the wrong place.

You need to do this:
&lt;pre&gt;function shortcode_id() {
&#160;&#160;&#160;$output = get_the_ID();
&#160;&#160;&#160;return $output;
}&lt;/pre&gt;
That should do it!</description>
		<content:encoded><![CDATA[<p>Hi Jasmine, for the output to appear in the correct place you have to return the output from the function.  &#8220;the_ID()&#8221; has an echo statement inside it, so your shortcode content is output (as you saw) but in the wrong place.</p>
<p>You need to do this:</p>
<pre>function shortcode_id() {
&nbsp;&nbsp;&nbsp;$output = get_the_ID();
&nbsp;&nbsp;&nbsp;return $output;
}</pre>
<p>That should do it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasmine</title>
		<link>http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/comment-page-1/#comment-4748</link>
		<dc:creator>Jasmine</dc:creator>
		<pubDate>Wed, 18 Feb 2009 23:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://englishmike.net/?p=168#comment-4748</guid>
		<description>Hi, 
I am using the below shortcode, however it does not output where I place the shortcode, it is placing the story right at the beginning of the post content. Is there something wrong with my code?

function shortcode_id() {
   the_ID();
}
add_shortcode(&#039;id&#039;, &#039;shortcode_id&#039;);

Thanks
Jasmine</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am using the below shortcode, however it does not output where I place the shortcode, it is placing the story right at the beginning of the post content. Is there something wrong with my code?</p>
<p>function shortcode_id() {<br />
   the_ID();<br />
}<br />
add_shortcode(&#8216;id&#8217;, &#8217;shortcode_id&#8217;);</p>
<p>Thanks<br />
Jasmine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: English Mike</title>
		<link>http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/comment-page-1/#comment-4561</link>
		<dc:creator>English Mike</dc:creator>
		<pubDate>Sat, 14 Feb 2009 01:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://englishmike.net/?p=168#comment-4561</guid>
		<description>Hi, I don&#039;t think you can use &quot;is_page()&quot; with a page number.  In any case, you don&#039;t really need it, since you&#039;re hardcoding the value in the function -- if it&#039;s a page, it&#039;s always a page :-)

Anyway, if you take that test out, the shortcode should work fine.

EM</description>
		<content:encoded><![CDATA[<p>Hi, I don&#8217;t think you can use &#8220;is_page()&#8221; with a page number.  In any case, you don&#8217;t really need it, since you&#8217;re hardcoding the value in the function &#8212; if it&#8217;s a page, it&#8217;s always a page <img src='http://englishmike.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Anyway, if you take that test out, the shortcode should work fine.</p>
<p>EM</p>
]]></content:encoded>
	</item>
</channel>
</rss>
