<?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>Anmari &#187; Shortcode any widget</title>
	<atom:link href="http://webdesign.anmari.com/category/plugins/shortcode-any-widget/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdesign.anmari.com</link>
	<description>Simply effective web services</description>
	<lastBuildDate>Wed, 16 Nov 2011 05:01:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The &#8220;shortcode any widget&#8221; handles multiple instances</title>
		<link>http://webdesign.anmari.com/1814/the-shortcode-any-widget-handles-multiple-instances/</link>
		<comments>http://webdesign.anmari.com/1814/the-shortcode-any-widget-handles-multiple-instances/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 04:15:01 +0000</pubDate>
		<dc:creator>anmari</dc:creator>
				<category><![CDATA[Shortcode any widget]]></category>

		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1814</guid>
		<description><![CDATA[The shortcode any widget plugin can reference multiple instances of the same widget individually  by targeting the instances unique id.  If you use the general name without the id, it will list all widgets with that name. EG: [do_widget id=tag_cloud-3] or [do_widget "Tag Cloud"] The trick is to be sure that you have the correct [...]
Related posts:<ol>
<li><a href='http://webdesign.anmari.com/1649/shortcode-any-widget/' rel='bookmark' title='Shortcode a widget in a page or post'>Shortcode a widget in a page or post</a> <small>Shortcodize a widget - Use any widget in a shortcode in a page or post...</small></li>
<li><a href='http://webdesign.anmari.com/1682/widget-as-shortcode-tips/' rel='bookmark' title='Widget as shortcode &#8211; tips'>Widget as shortcode &#8211; tips</a> <small>Want to keep the widget title to identify it from other instances of the same widget, but want to hide...</small></li>
<li><a href='http://webdesign.anmari.com/157/widgetized-headers-and-footers/' rel='bookmark' title='Widgetized headers and footers?'>Widgetized headers and footers?</a> <small>Dynamic (widgetized) Sidebars are great, but would you not like to have a dynamic header and footer in your theme...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The shortcode any widget plugin can reference multiple instances of the same widget individually  by targeting the instances unique id.  If you use the general name without the id, it will list all widgets with that name.</p>
<p>EG:</p>
<blockquote><p>[do_widget id=tag_cloud-3]</p></blockquote>
<p>or</p>
<blockquote><p>[do_widget "Tag Cloud"]</p></blockquote>
<p>The trick is to be sure that you have the correct id&#8217;s, and the id names correct.  For example, to double check I added two tag cloud widgets to my play system.  The id&#8217;s ended up being &#8220;tag_cloud-3&#8243; and &#8220;tag_cloud-4&#8243;.   You also need a separate do_widget for each &#8211; don&#8217;t put in the same shortcode<br />
Note:</p>
<ol>
<li>the underscore and the hyphen</li>
<li>the fact that they were not numbered 1 and 2, even though I currently had no other tag cloud widgets</li>
</ol>
<h3>How to find out the widget id?</h3>
<p>In the post or page where you have entered the shortcode, add to the url:</p>
<blockquote><p>?do_widget_debug</p></blockquote>
<p>(replace ? with &amp; if you already have a ?)</p>
<p>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</p>
<p><strong>Alternatively:</strong></p>
<p>In some browser you can hover over your widgets or the edit links in the widget sidebar to really see what the id&#8217;s are.</p>
<div id="attachment_1816" class="wp-caption aligncenter" style="width: 310px"><a href="http://webdesign.anmari.com/wp-content/uploads/editpostmultiwidget.png"><img class="size-medium wp-image-1816" title="editpostmultiwidget" src="http://webdesign.anmari.com/wp-content/uploads/editpostmultiwidget-300x171.png" alt="" width="300" height="171" /></a><p class="wp-caption-text">How to do the shortcode any widget</p></div>
<p>and the result is&#8230;&#8230;..</p>
<div id="attachment_1813" class="wp-caption aligncenter" style="width: 310px"><a href="http://webdesign.anmari.com/wp-content/uploads/multiwidgetshortcode.png"><img class="size-medium wp-image-1813" title="multiwidgetshortcode" src="http://webdesign.anmari.com/wp-content/uploads/multiwidgetshortcode-300x229.png" alt="" width="300" height="229" /></a><p class="wp-caption-text">Multiple widget instances</p></div>
<p>Related posts:</p><ol>
<li><a href='http://webdesign.anmari.com/1649/shortcode-any-widget/' rel='bookmark' title='Shortcode a widget in a page or post'>Shortcode a widget in a page or post</a> <small>Shortcodize a widget - Use any widget in a shortcode in a page or post...</small></li>
<li><a href='http://webdesign.anmari.com/1682/widget-as-shortcode-tips/' rel='bookmark' title='Widget as shortcode &#8211; tips'>Widget as shortcode &#8211; tips</a> <small>Want to keep the widget title to identify it from other instances of the same widget, but want to hide...</small></li>
<li><a href='http://webdesign.anmari.com/157/widgetized-headers-and-footers/' rel='bookmark' title='Widgetized headers and footers?'>Widgetized headers and footers?</a> <small>Dynamic (widgetized) Sidebars are great, but would you not like to have a dynamic header and footer in your theme...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://webdesign.anmari.com/1814/the-shortcode-any-widget-handles-multiple-instances/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Widget as shortcode &#8211; tips</title>
		<link>http://webdesign.anmari.com/1682/widget-as-shortcode-tips/</link>
		<comments>http://webdesign.anmari.com/1682/widget-as-shortcode-tips/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 23:03:09 +0000</pubDate>
		<dc:creator>anmari</dc:creator>
				<category><![CDATA[Shortcode any widget]]></category>

		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1682</guid>
		<description><![CDATA[Want to keep the widget title to identify it from other instances of the same widget, but want to hide the title when the widget is used in a shortcode (ie in a page)? [do_widget widgetname title=false] Want to reference a pre-existing widget configuration in a sidebar? [do_widget id=widget_id sidebar=sidebar_name] Related posts: The &#8220;shortcode any [...]
Related posts:<ol>
<li><a href='http://webdesign.anmari.com/1814/the-shortcode-any-widget-handles-multiple-instances/' rel='bookmark' title='The &#8220;shortcode any widget&#8221; handles multiple instances'>The &#8220;shortcode any widget&#8221; handles multiple instances</a> <small>The shortcode any widget plugin can reference multiple instances of the same widget individually  by targeting the instances unique id. ...</small></li>
<li><a href='http://webdesign.anmari.com/1649/shortcode-any-widget/' rel='bookmark' title='Shortcode a widget in a page or post'>Shortcode a widget in a page or post</a> <small>Shortcodize a widget - Use any widget in a shortcode in a page or post...</small></li>
<li><a href='http://webdesign.anmari.com/289/subscribe2-widget-markup/' rel='bookmark' title='Subscribe2 widget markup and css'>Subscribe2 widget markup and css</a> <small>Please refer to updated instructions. The wordpress subscribe 2 plugin is great. Version 4.9 just released &#8211; a wonderful alternative...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Want to keep the widget title to identify it from other instances of the same widget, but want to hide the title when the widget is used in a shortcode (ie in a page)?</p>
<p>[do_widget <em>widgetname</em> <strong>title=false</strong>]</p>
<p>Want to reference a pre-existing widget configuration in a sidebar?</p>
<p>[do_widget id=<em>widget_id</em> <strong>sidebar=<em>sidebar_name</em></strong>]</p>
<p>Related posts:</p><ol>
<li><a href='http://webdesign.anmari.com/1814/the-shortcode-any-widget-handles-multiple-instances/' rel='bookmark' title='The &#8220;shortcode any widget&#8221; handles multiple instances'>The &#8220;shortcode any widget&#8221; handles multiple instances</a> <small>The shortcode any widget plugin can reference multiple instances of the same widget individually  by targeting the instances unique id. ...</small></li>
<li><a href='http://webdesign.anmari.com/1649/shortcode-any-widget/' rel='bookmark' title='Shortcode a widget in a page or post'>Shortcode a widget in a page or post</a> <small>Shortcodize a widget - Use any widget in a shortcode in a page or post...</small></li>
<li><a href='http://webdesign.anmari.com/289/subscribe2-widget-markup/' rel='bookmark' title='Subscribe2 widget markup and css'>Subscribe2 widget markup and css</a> <small>Please refer to updated instructions. The wordpress subscribe 2 plugin is great. Version 4.9 just released &#8211; a wonderful alternative...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://webdesign.anmari.com/1682/widget-as-shortcode-tips/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Shortcode a widget in a page or post</title>
		<link>http://webdesign.anmari.com/1649/shortcode-any-widget/</link>
		<comments>http://webdesign.anmari.com/1649/shortcode-any-widget/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 10:55:30 +0000</pubDate>
		<dc:creator>anmari</dc:creator>
				<category><![CDATA[Shortcode any widget]]></category>

		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1649</guid>
		<description><![CDATA[Shortcodize a widget - Use any widget in a shortcode in a page or post
Related posts:<ol>
<li><a href='http://webdesign.anmari.com/1814/the-shortcode-any-widget-handles-multiple-instances/' rel='bookmark' title='The &#8220;shortcode any widget&#8221; handles multiple instances'>The &#8220;shortcode any widget&#8221; handles multiple instances</a> <small>The shortcode any widget plugin can reference multiple instances of the same widget individually  by targeting the instances unique id. ...</small></li>
<li><a href='http://webdesign.anmari.com/1682/widget-as-shortcode-tips/' rel='bookmark' title='Widget as shortcode &#8211; tips'>Widget as shortcode &#8211; tips</a> <small>Want to keep the widget title to identify it from other instances of the same widget, but want to hide...</small></li>
<li><a href='http://webdesign.anmari.com/2643/initial-content-for-a-new-page-or-post-wordpress-pleasant-surprise/' rel='bookmark' title='Initial content for a new page or post &#8211; wordpress pleasant surprise'>Initial content for a new page or post &#8211; wordpress pleasant surprise</a> <small>How to create a link to the add new page or post with default starting content...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Available  at <a href="http://wordpress.org/extend/plugins/amr-shortcode-any-widget/">wordpress</a> now &#8211; This plugin allows you to use any widget as a shortcode in a page or post with any theme.  While many plugin authors do provide a widget and a shortcode, not all do.  With this plugin there is no need to use the hybrid theme or create a special page template just to use a widget in a page or post.</p>
<p>For example</p>
<ul>
<li>[do_widget id=tag_cloud-2]  will show the second tag cloud widget</li>
<li> [do_widget "query posts"] will allow you to have a selection of posts listed in your page.    The plugin uses a dummy sidebar called &#8220;shortcode&#8221; which allows one to use the widgets user interface to specify the custom settings.</li>
</ul>
<p>The shortcode sidebar is a named widget sidebar only used to set up the widget settings.</p>
<blockquote><p><span style="text-decoration: line-through;"><strong>Warning:</strong> Themes with numbered (or totally unnamed sidebars) do not work well this. Somehow since the plugin is creating the shortcode sidebar rather than a theme (and plugins seem to run befor the theme code), wordpress allocates it the number one slot. Named sidebars are okay, but others relying on being no.1 or the one and only are pushed out. </span>Fixed in version 1.12.</p></blockquote>
<p>Primarily I have in mind that one would want to list posts by excerpts  for a category or a tag group within a discussion of the subject.  Thus one could have multiple portfolio pages.  This is achieved using  Justin Tadlocks <a href="http://justintadlock.com/archives/2009/03/15/query-posts-widget-wordpress-plugin">query posts widget</a> with this do_widget shortcode.  One could also try using the <a href="http://justintadlock.com/archives/2009/03/24/template-tag-shortcodes-wordpress-plugin">template tags shortcode plugin</a> also by Justin Tadlock to achieve similar functionality. The differences with this plugin are</p>
<ul>
<li>any widget could be used (as opposed to template tags)</li>
<li>no special UI (User Interface) needed as each widget&#8217;s own UI is used to set any settings</li>
</ul>
<p>I&#8217;d love to hear other ways that people might decide to use this plugin.</p>
<h2>Download: <a href="http://wordpress.org/extend/plugins/amr-shortcode-any-widget/">amr_shortcode_any_widget</a></h2>
<div id="attachment_1653" class="wp-caption aligncenter" style="width: 418px"><a href="http://webdesign.anmari.com/wp-content/uploads/shortcodepage.png"><img class="size-full wp-image-1653   " title="shortcodepage" src="http://webdesign.anmari.com/wp-content/uploads/shortcodepage.png" alt="Demonstration of t wo widgets called with shortcodes from within page or post text" width="408" height="518" /></a><p class="wp-caption-text">Demonstration of two widgets called with shortcodes from within page or post text</p></div>
<div id="attachment_1651" class="wp-caption aligncenter" style="width: 315px"><a href="http://webdesign.anmari.com/wp-content/uploads/shortcodesidebar.png"><img class="size-full wp-image-1651" title="shortcodesidebar" src="http://webdesign.anmari.com/wp-content/uploads/shortcodesidebar.png" alt="The Shortcode Sidebar - Add the widgets that you wish to use as shortcodes." width="305" height="202" /></a><p class="wp-caption-text">The Shortcode Sidebar - Add the widgets that you wish to use as shortcodes.</p></div>
<div id="attachment_1655" class="wp-caption aligncenter" style="width: 310px"><a href="http://webdesign.anmari.com/wp-content/uploads/qpwidget.png"><img class="size-medium wp-image-1655" title="qpwidget" src="http://webdesign.anmari.com/wp-content/uploads/qpwidget-300x77.png" alt="Set the widget's settings" width="300" height="77" /></a><p class="wp-caption-text">Set the widget&#39;s settings</p></div>
<div id="attachment_1656" class="wp-caption aligncenter" style="width: 310px"><a href="http://webdesign.anmari.com/wp-content/uploads/shortcodepageedit.png"><img class="size-medium wp-image-1656" title="shortcodepageedit" src="http://webdesign.anmari.com/wp-content/uploads/shortcodepageedit-300x122.png" alt="Edit thepage, inserting the do_widget shortcode" width="300" height="122" /></a><p class="wp-caption-text">Edit thepage, inserting the do_widget shortcode</p></div>
<p>Related posts:</p><ol>
<li><a href='http://webdesign.anmari.com/1814/the-shortcode-any-widget-handles-multiple-instances/' rel='bookmark' title='The &#8220;shortcode any widget&#8221; handles multiple instances'>The &#8220;shortcode any widget&#8221; handles multiple instances</a> <small>The shortcode any widget plugin can reference multiple instances of the same widget individually  by targeting the instances unique id. ...</small></li>
<li><a href='http://webdesign.anmari.com/1682/widget-as-shortcode-tips/' rel='bookmark' title='Widget as shortcode &#8211; tips'>Widget as shortcode &#8211; tips</a> <small>Want to keep the widget title to identify it from other instances of the same widget, but want to hide...</small></li>
<li><a href='http://webdesign.anmari.com/2643/initial-content-for-a-new-page-or-post-wordpress-pleasant-surprise/' rel='bookmark' title='Initial content for a new page or post &#8211; wordpress pleasant surprise'>Initial content for a new page or post &#8211; wordpress pleasant surprise</a> <small>How to create a link to the add new page or post with default starting content...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://webdesign.anmari.com/1649/shortcode-any-widget/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
	</channel>
</rss>

