<?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: Widgetizing a Wordpress Plugin:  Example Widget Code</title>
	<atom:link href="http://apartmentonesix.com/2009/03/widgetizing-a-wordpress-plugin-example-widget-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://apartmentonesix.com/2009/03/widgetizing-a-wordpress-plugin-example-widget-code/</link>
	<description></description>
	<lastBuildDate>Mon, 12 Jul 2010 12:35:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Yadheendran</title>
		<link>http://apartmentonesix.com/2009/03/widgetizing-a-wordpress-plugin-example-widget-code/comment-page-1/#comment-2387</link>
		<dc:creator>Yadheendran</dc:creator>
		<pubDate>Wed, 03 Mar 2010 11:26:08 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=34#comment-2387</guid>
		<description>Thanks for your Good Tutorial on WP Widget</description>
		<content:encoded><![CDATA[<p>Thanks for your Good Tutorial on WP Widget</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://apartmentonesix.com/2009/03/widgetizing-a-wordpress-plugin-example-widget-code/comment-page-1/#comment-2382</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Wed, 03 Feb 2010 00:37:33 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=34#comment-2382</guid>
		<description>Hey, really good walkthough and example.  Helped me a lot, thanks!</description>
		<content:encoded><![CDATA[<p>Hey, really good walkthough and example.  Helped me a lot, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Starred Review &#124; Blue Orbs</title>
		<link>http://apartmentonesix.com/2009/03/widgetizing-a-wordpress-plugin-example-widget-code/comment-page-1/#comment-2136</link>
		<dc:creator>Starred Review &#124; Blue Orbs</dc:creator>
		<pubDate>Fri, 30 Oct 2009 06:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=34#comment-2136</guid>
		<description>[...] Thanks to Marc Hodges, who created the original plugin and to Peter for his invaluable Widgetizing Tutorial. [...]</description>
		<content:encoded><![CDATA[<p>[...] Thanks to Marc Hodges, who created the original plugin and to Peter for his invaluable Widgetizing Tutorial. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://apartmentonesix.com/2009/03/widgetizing-a-wordpress-plugin-example-widget-code/comment-page-1/#comment-116</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 18 Apr 2009 18:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=34#comment-116</guid>
		<description>Glad the post could help - I haven&#039;t had a chance to download your plugin yet, but I&#039;ll have a look!

As for the widget title issue - I started to say that if we just renamed that variable, WordPress might not recognize it as the &quot;title&quot;, but now I&#039;m really intrigued as to how WordPress figured that out in the first place.  Sounds like its time for a trip to the core files..</description>
		<content:encoded><![CDATA[<p>Glad the post could help &#8211; I haven&#8217;t had a chance to download your plugin yet, but I&#8217;ll have a look!</p>
<p>As for the widget title issue &#8211; I started to say that if we just renamed that variable, WordPress might not recognize it as the &#8220;title&#8221;, but now I&#8217;m really intrigued as to how WordPress figured that out in the first place.  Sounds like its time for a trip to the core files..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://apartmentonesix.com/2009/03/widgetizing-a-wordpress-plugin-example-widget-code/comment-page-1/#comment-114</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 18 Apr 2009 17:58:09 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=34#comment-114</guid>
		<description>I agree Callum - I&#039;m not sure why I chose init in the first place, but widgets_init definitely sounds like the right choice.  I&#039;ve updated the sample code with that, as well as removing all the serialize/unserialize calls - I found out a few days later that &lt;a href=&quot;http://apartmentonesix.com/2009/03/maybe_serialize-and-the-magic-of-wordpress/&quot; rel=&quot;nofollow&quot;&gt;these are harmless, but unnecessary&lt;/a&gt;.

Thanks for the insight Callum!</description>
		<content:encoded><![CDATA[<p>I agree Callum &#8211; I&#8217;m not sure why I chose init in the first place, but widgets_init definitely sounds like the right choice.  I&#8217;ve updated the sample code with that, as well as removing all the serialize/unserialize calls &#8211; I found out a few days later that <a href="http://apartmentonesix.com/2009/03/maybe_serialize-and-the-magic-of-wordpress/" rel="nofollow">these are harmless, but unnecessary</a>.</p>
<p>Thanks for the insight Callum!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum Alden</title>
		<link>http://apartmentonesix.com/2009/03/widgetizing-a-wordpress-plugin-example-widget-code/comment-page-1/#comment-111</link>
		<dc:creator>Callum Alden</dc:creator>
		<pubDate>Sat, 18 Apr 2009 17:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=34#comment-111</guid>
		<description>[sorry to spam]

But-- you might want to change:

&lt;code&gt;add_action(&quot;init&quot;, &quot;mywidget_init&quot;);&lt;/code&gt;

to

&lt;code&gt;add_action(&quot;widgets_init&quot;, &quot;mywidget_init&quot;);&lt;/code&gt;

if the widget / plugin is running from the same file (myplugin.php) the first init is called and works, the second causes confusion, an error and finally a non-working plugin! it could be specific to my setup, but widgets_init sounds like its meant for the job!?</description>
		<content:encoded><![CDATA[<p>[sorry to spam]</p>
<p>But&#8211; you might want to change:</p>
<p><code>add_action("init", "mywidget_init");</code></p>
<p>to</p>
<p><code>add_action("widgets_init", "mywidget_init");</code></p>
<p>if the widget / plugin is running from the same file (myplugin.php) the first init is called and works, the second causes confusion, an error and finally a non-working plugin! it could be specific to my setup, but widgets_init sounds like its meant for the job!?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum Alden</title>
		<link>http://apartmentonesix.com/2009/03/widgetizing-a-wordpress-plugin-example-widget-code/comment-page-1/#comment-110</link>
		<dc:creator>Callum Alden</dc:creator>
		<pubDate>Sat, 18 Apr 2009 17:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=34#comment-110</guid>
		<description>... so that&#039;s &lt;a href=&quot;http://www.metacomment.com/starred-review/&quot; rel=&quot;nofollow&quot;&gt;my plugin&lt;/a&gt; updated with support for widgets with many thanks to you. Took only an hour or so after i discovered your post- although I&#039;ve been hacking away at other&#039;s templates since 8PM last night! grr.

Great stuff! only issue is with edited titles... If a user adds a new / altered title it appears in the Wordpress dashboard as &lt;strong&gt;Plugin Name: New Plugin Name&lt;/strong&gt;. No big problem, it could be quite useful... but doesn&#039;t sit right with me.</description>
		<content:encoded><![CDATA[<p>&#8230; so that&#8217;s <a href="http://www.metacomment.com/starred-review/" rel="nofollow">my plugin</a> updated with support for widgets with many thanks to you. Took only an hour or so after i discovered your post- although I&#8217;ve been hacking away at other&#8217;s templates since 8PM last night! grr.</p>
<p>Great stuff! only issue is with edited titles&#8230; If a user adds a new / altered title it appears in the Wordpress dashboard as <strong>Plugin Name: New Plugin Name</strong>. No big problem, it could be quite useful&#8230; but doesn&#8217;t sit right with me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://apartmentonesix.com/2009/03/widgetizing-a-wordpress-plugin-example-widget-code/comment-page-1/#comment-109</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 18 Apr 2009 16:31:43 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=34#comment-109</guid>
		<description>Hey Callum - I&#039;m glad to hear I wasn&#039;t the only one having trouble with widgets.  Good luck!</description>
		<content:encoded><![CDATA[<p>Hey Callum &#8211; I&#8217;m glad to hear I wasn&#8217;t the only one having trouble with widgets.  Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum Alden</title>
		<link>http://apartmentonesix.com/2009/03/widgetizing-a-wordpress-plugin-example-widget-code/comment-page-1/#comment-108</link>
		<dc:creator>Callum Alden</dc:creator>
		<pubDate>Sat, 18 Apr 2009 16:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://apartmentonesix.com/?p=34#comment-108</guid>
		<description>invaluable: i can&#039;t say better than that. this is a thorough and exact tutorial- unlike the 20 others i&#039;ve read and broken my patience with in the last 12 hours. thank you, keep it up.

oh yeah, its appalling yet sadly true- the code on Automattic&#039;s site doesn&#039;t even produce a widget. all that CSS management, high google ranking *whistles and bells* and the guy&#039;s tutorial produces nothing close to a working widget.

- Callum</description>
		<content:encoded><![CDATA[<p>invaluable: i can&#8217;t say better than that. this is a thorough and exact tutorial- unlike the 20 others i&#8217;ve read and broken my patience with in the last 12 hours. thank you, keep it up.</p>
<p>oh yeah, its appalling yet sadly true- the code on Automattic&#8217;s site doesn&#8217;t even produce a widget. all that CSS management, high google ranking *whistles and bells* and the guy&#8217;s tutorial produces nothing close to a working widget.</p>
<p>- Callum</p>
]]></content:encoded>
	</item>
</channel>
</rss>
