<?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: Shortcode a widget in a page or post</title>
	<atom:link href="http://webdesign.anmari.com/1649/shortcode-any-widget/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdesign.anmari.com/1649/shortcode-any-widget/</link>
	<description>Simply effective web services</description>
	<lastBuildDate>Mon, 29 Aug 2011 21:48:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: anmari</title>
		<link>http://webdesign.anmari.com/1649/shortcode-any-widget/comment-page-1/#comment-4627</link>
		<dc:creator>anmari</dc:creator>
		<pubDate>Mon, 22 Nov 2010 03:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1649#comment-4627</guid>
		<description>Hi Eddy,

I do not know what you mean by switching the widget logic off.  The plugin is quite simple and it fit works in a page, then it should work in a post unless some other plugin is blocking filters, or you have not identified the widget suitably for the plugin. See below.

When viewing your post, add to the url   (replace ? with &amp; if you already have a ?)

 ?do_widget_debug

If the do_widget shortcode fires, then it will list your sidebars and the widget ids and a bunch of other statements.

Find the shortcode sidebar and see what the id of the widget is.  See any message below about not finding widgets or names.

Check that you have either

Using the shortcode-any-widget plugin, please note that you can use either:

&lt;code&gt;[do_widget &lt;strong&gt;id=&lt;/strong&gt;tag_cloud-3]&lt;/code&gt;

or

&lt;code&gt;[do_widget &quot;Tag Cloud&quot;]&lt;/code&gt;

note the quotes, and of course replace tag cloud with your widget name.

See here &lt;a href=&quot;http://webdesign.anmari.com/category/plugins/shortcode-any-widget/&quot; rel=&quot;nofollow&quot;&gt;http://webdesign.anmari.com/category/plugins/shortcode-any-widget/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi Eddy,</p>
<p>I do not know what you mean by switching the widget logic off.  The plugin is quite simple and it fit works in a page, then it should work in a post unless some other plugin is blocking filters, or you have not identified the widget suitably for the plugin. See below.</p>
<p>When viewing your post, add to the url   (replace ? with &amp; if you already have a ?)</p>
<p> ?do_widget_debug</p>
<p>If the do_widget shortcode fires, then it will list your sidebars and the widget ids and a bunch of other statements.</p>
<p>Find the shortcode sidebar and see what the id of the widget is.  See any message below about not finding widgets or names.</p>
<p>Check that you have either</p>
<p>Using the shortcode-any-widget plugin, please note that you can use either:</p>
<p><code>[do_widget <strong>id=</strong>tag_cloud-3]</code></p>
<p>or</p>
<p><code>[do_widget "Tag Cloud"]</code></p>
<p>note the quotes, and of course replace tag cloud with your widget name.</p>
<p>See here <a href="http://webdesign.anmari.com/category/plugins/shortcode-any-widget/" rel="nofollow">http://webdesign.anmari.com/category/plugins/shortcode-any-widget/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddy</title>
		<link>http://webdesign.anmari.com/1649/shortcode-any-widget/comment-page-1/#comment-4621</link>
		<dc:creator>Eddy</dc:creator>
		<pubDate>Thu, 18 Nov 2010 05:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1649#comment-4621</guid>
		<description>Hi Anna-Marie,

I&#039;ve been goggling around looking for a simple yet powerful plugin that allow me to add widgets in page or post. I&#039;ve been using widget logic before.

I&#039;ve tried the plugin and it work like a charm in a page. However it didn&#039;t work and nothing shows when i included the same widgets and shortcode in a post. I&#039;ve make sure to turn off the widget logic but still no avail.

Btw, the theme i&#039;m using is lifestyle 4.0

Please help me.
Eddy</description>
		<content:encoded><![CDATA[<p>Hi Anna-Marie,</p>
<p>I&#8217;ve been goggling around looking for a simple yet powerful plugin that allow me to add widgets in page or post. I&#8217;ve been using widget logic before.</p>
<p>I&#8217;ve tried the plugin and it work like a charm in a page. However it didn&#8217;t work and nothing shows when i included the same widgets and shortcode in a post. I&#8217;ve make sure to turn off the widget logic but still no avail.</p>
<p>Btw, the theme i&#8217;m using is lifestyle 4.0</p>
<p>Please help me.<br />
Eddy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pescadito</title>
		<link>http://webdesign.anmari.com/1649/shortcode-any-widget/comment-page-1/#comment-4327</link>
		<dc:creator>pescadito</dc:creator>
		<pubDate>Tue, 13 Jul 2010 13:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1649#comment-4327</guid>
		<description>ok anne-marie, 

you have rigth, your point it&#039;s true.

perhaps it can be done more properly with something like


but some widgets have a lot of options and setting this in the widget sidebar is more confortable, at last while we are setting up the blog.

and thank for your time,

best regard, pescadito.</description>
		<content:encoded><![CDATA[<p>ok anne-marie, </p>
<p>you have rigth, your point it&#8217;s true.</p>
<p>perhaps it can be done more properly with something like</p>
<p>but some widgets have a lot of options and setting this in the widget sidebar is more confortable, at last while we are setting up the blog.</p>
<p>and thank for your time,</p>
<p>best regard, pescadito.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anna-marie</title>
		<link>http://webdesign.anmari.com/1649/shortcode-any-widget/comment-page-1/#comment-4326</link>
		<dc:creator>anna-marie</dc:creator>
		<pubDate>Tue, 13 Jul 2010 11:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1649#comment-4326</guid>
		<description>Hi pescadito,
I have not tried this myself but something like
do_widget(array(
    &#039;sidebar&#039; =&gt; &#039;Shortcodes&#039;,
    &#039;id&#039; =&gt; &#039;id of widget you want&#039;,    or 0=&gt; widgetname
    &#039;title&#039; =&gt; &#039;true&#039;  ))

However I don&#039;t recommend this, since it presupposes that the widget configuration has already been done in the shortcode sidebar and somehow it seems wrong to me that a theme should require config to be already in place?  Themes are usually somewhat self contained and standalone.</description>
		<content:encoded><![CDATA[<p>Hi pescadito,<br />
I have not tried this myself but something like<br />
do_widget(array(<br />
    &#8216;sidebar&#8217; =&gt; &#8216;Shortcodes&#8217;,<br />
    &#8216;id&#8217; =&gt; &#8216;id of widget you want&#8217;,    or 0=&gt; widgetname<br />
    &#8216;title&#8217; =&gt; &#8216;true&#8217;  ))</p>
<p>However I don&#8217;t recommend this, since it presupposes that the widget configuration has already been done in the shortcode sidebar and somehow it seems wrong to me that a theme should require config to be already in place?  Themes are usually somewhat self contained and standalone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pescadito</title>
		<link>http://webdesign.anmari.com/1649/shortcode-any-widget/comment-page-1/#comment-4325</link>
		<dc:creator>pescadito</dc:creator>
		<pubDate>Tue, 13 Jul 2010 08:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1649#comment-4325</guid>
		<description>hi anne-marie and thank for sharing your pretty plugin.

i would like to call it from the theme instead of shortcode, how would be the proper sintax to call it?

in guess something like 

if ( function_exists(&#039;do_widget&#039;) ) 
{do_widget(&#039;SimpleLogin&#039;);

but this way isn&#039;t work to me.

could you explain it to me?

best regard, pescadito</description>
		<content:encoded><![CDATA[<p>hi anne-marie and thank for sharing your pretty plugin.</p>
<p>i would like to call it from the theme instead of shortcode, how would be the proper sintax to call it?</p>
<p>in guess something like </p>
<p>if ( function_exists(&#8216;do_widget&#8217;) )<br />
{do_widget(&#8216;SimpleLogin&#8217;);</p>
<p>but this way isn&#8217;t work to me.</p>
<p>could you explain it to me?</p>
<p>best regard, pescadito</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anna-marie</title>
		<link>http://webdesign.anmari.com/1649/shortcode-any-widget/comment-page-1/#comment-4310</link>
		<dc:creator>anna-marie</dc:creator>
		<pubDate>Thu, 01 Jul 2010 03:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1649#comment-4310</guid>
		<description>Hi Mile,  I think 3.0 must have changed something because when I wrote the plugin that is exactly what it was using.  However looking now it seems that the widgets have longer id&#039;s now.   Now I see
widget-22_archives-2 instead of archives-2.

I do like to keep them up to date but time is an issue!  

Thanks for flagging it though - I&#039;ll make a note to look at it when I can.</description>
		<content:encoded><![CDATA[<p>Hi Mile,  I think 3.0 must have changed something because when I wrote the plugin that is exactly what it was using.  However looking now it seems that the widgets have longer id&#8217;s now.   Now I see<br />
widget-22_archives-2 instead of archives-2.</p>
<p>I do like to keep them up to date but time is an issue!  </p>
<p>Thanks for flagging it though &#8211; I&#8217;ll make a note to look at it when I can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mile</title>
		<link>http://webdesign.anmari.com/1649/shortcode-any-widget/comment-page-1/#comment-4309</link>
		<dc:creator>Mile</dc:creator>
		<pubDate>Wed, 30 Jun 2010 13:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1649#comment-4309</guid>
		<description>ah I see now.
still, the ID you use is hard to figure out by the common WP user. Aren&#039;t the generated IDs from the widget options, or the Widget Name + Number (in the sidebar) better solutions?

you should really modify your code to support that, because this plugin has a lot of potential :)

Bye</description>
		<content:encoded><![CDATA[<p>ah I see now.<br />
still, the ID you use is hard to figure out by the common WP user. Aren&#8217;t the generated IDs from the widget options, or the Widget Name + Number (in the sidebar) better solutions?</p>
<p>you should really modify your code to support that, because this plugin has a lot of potential <img src='http://webdesign.anmari.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Bye</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anna-marie</title>
		<link>http://webdesign.anmari.com/1649/shortcode-any-widget/comment-page-1/#comment-4308</link>
		<dc:creator>anna-marie</dc:creator>
		<pubDate>Wed, 30 Jun 2010 12:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1649#comment-4308</guid>
		<description>Hi Mile,

that&#039;s probably because your syntax is not quite right - you are doing two things in one. So either do one or another:

[do_widget calendar] will do all calendars in the shortcode sidebar

[do_widget id=&quot;calendar-2&quot; ] will do only one instance

This post has related info &lt;a href=&quot;http://webdesign.anmari.com/the-shortcode-any-widget-handles-multiple-instances/&quot; rel=&quot;nofollow&quot;&gt;http://webdesign.anmari.com/the-shortcode-any-widget-handles-multiple-instances/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi Mile,</p>
<p>that&#8217;s probably because your syntax is not quite right &#8211; you are doing two things in one. So either do one or another:</p>
<p>[do_widget calendar] will do all calendars in the shortcode sidebar</p>
<p>[do_widget id="calendar-2" ] will do only one instance</p>
<p>This post has related info <a href="http://webdesign.anmari.com/the-shortcode-any-widget-handles-multiple-instances/" rel="nofollow">http://webdesign.anmari.com/the-shortcode-any-widget-handles-multiple-instances/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mile</title>
		<link>http://webdesign.anmari.com/1649/shortcode-any-widget/comment-page-1/#comment-4307</link>
		<dc:creator>Mile</dc:creator>
		<pubDate>Wed, 30 Jun 2010 12:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1649#comment-4307</guid>
		<description>well for example using [do_widget Calendar id=2] will output both Calendar widgets, instead of just the 2nd.

anyways, here&#039;s my final take (I added the &#039;number&#039; parameter as well):
http://pastebin.com/zLV2q7Bg

&lt;a href=&quot;http://img256.imageshack.us/img256/9498/37928329.jpg&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; you can see what I meant by IDs (basically a unique md5 hashed string from the widget instance ID)...

another idea is to remove the widget title html from $output using php DOM functions, instead of hiding it...</description>
		<content:encoded><![CDATA[<p>well for example using [do_widget Calendar id=2] will output both Calendar widgets, instead of just the 2nd.</p>
<p>anyways, here&#8217;s my final take (I added the &#8216;number&#8217; parameter as well):<br />
<a href="http://pastebin.com/zLV2q7Bg" rel="nofollow">http://pastebin.com/zLV2q7Bg</a></p>
<p><a href="http://img256.imageshack.us/img256/9498/37928329.jpg" rel="nofollow">here</a> you can see what I meant by IDs (basically a unique md5 hashed string from the widget instance ID)&#8230;</p>
<p>another idea is to remove the widget title html from $output using php DOM functions, instead of hiding it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anna-marie</title>
		<link>http://webdesign.anmari.com/1649/shortcode-any-widget/comment-page-1/#comment-4306</link>
		<dc:creator>anna-marie</dc:creator>
		<pubDate>Wed, 30 Jun 2010 00:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1649#comment-4306</guid>
		<description>Hi Mile,

Thanks for letting me know.

Perhaps you could clarify what you mean by weird results?  (If it is style changes as you move a widget from one sidebar to another, that could be because the theme&#039;s css uses the sidebar in the selectors?).   the instance id should stay the same so I cannot think what else might happen as you move it?    I think keeping the html id was intended to cope with those circumstances where special styling had been developed possibly using the id&#039;s, so that that styling would carry through to the widget in the page.

Note that the name is good to keep because

	some inexperienced folk are using wordpress these days and they don&#039;t know how to find the id, whereas name is quite visible
	some browsers (was it safari?) the id was not easily visible on hover, one had to go to page source to find it - a pain



Also FYI and  for other readers, cambridge newmedia (the ym plugins) also have a &lt;a href=&quot;http://www.newmedias.co.uk/free-wordpress-plugins/&quot; rel=&quot;nofollow&quot;&gt;shortcode widget plugin. 
&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi Mile,</p>
<p>Thanks for letting me know.</p>
<p>Perhaps you could clarify what you mean by weird results?  (If it is style changes as you move a widget from one sidebar to another, that could be because the theme&#8217;s css uses the sidebar in the selectors?).   the instance id should stay the same so I cannot think what else might happen as you move it?    I think keeping the html id was intended to cope with those circumstances where special styling had been developed possibly using the id&#8217;s, so that that styling would carry through to the widget in the page.</p>
<p>Note that the name is good to keep because</p>
<p>	some inexperienced folk are using wordpress these days and they don&#8217;t know how to find the id, whereas name is quite visible<br />
	some browsers (was it safari?) the id was not easily visible on hover, one had to go to page source to find it &#8211; a pain</p>
<p>Also FYI and  for other readers, cambridge newmedia (the ym plugins) also have a <a href="http://www.newmedias.co.uk/free-wordpress-plugins/" rel="nofollow">shortcode widget plugin.<br />
</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

