<?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: Build A WordPress 2.8 Widget With The New Widget API</title>
	<atom:link href="http://wpengineer.com/wordpress-built-a-widget/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com/wordpress-built-a-widget/</link>
	<description>WordPress News, Hacks, Tipps, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Sun, 14 Mar 2010 21:55:13 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Multi Widgets &#124; Advanced Wordpress Tutorials</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-3267</link>
		<dc:creator>Multi Widgets &#124; Advanced Wordpress Tutorials</dc:creator>
		<pubDate>Sat, 16 Jan 2010 02:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-3267</guid>
		<description>[...] Some good examples are available at: http://wpengineer.com/wordpress-built-a-widget/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Some good examples are available at: <a href="http://wpengineer.com/wordpress-built-a-widget/" rel="nofollow" class="liinternal">http://wpengineer.com/wordpress-built-a-widget/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron Sparks</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-2962</link>
		<dc:creator>Ron Sparks</dc:creator>
		<pubDate>Tue, 08 Dec 2009 20:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-2962</guid>
		<description>amazing!! 
thanks so much.

 I also had an error like TZS 
and replacing:
register_widget(&#039;My_RSS_Widget&#039;);
 
with:
add_action( &#039;widgets_init&#039;, create_function(&#039;&#039;, &#039;return register_widget(&quot;My_RSS_Widget&quot;);&#039;) );

workd masterfully THANKS!</description>
		<content:encoded><![CDATA[<p>amazing!!<br />
thanks so much.</p>
<p> I also had an error like TZS<br />
and replacing:<br />
register_widget('My_RSS_Widget');</p>
<p>with:<br />
add_action( 'widgets_init', create_function('', 'return register_widget("My_RSS_Widget");') );</p>
<p>workd masterfully THANKS!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 24 WordPress хака от WPEngineer Wordpress: статьи, плагины, темы</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-2065</link>
		<dc:creator>24 WordPress хака от WPEngineer Wordpress: статьи, плагины, темы</dc:creator>
		<pubDate>Tue, 01 Dec 2009 10:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-2065</guid>
		<description>[...] только с WordPress 2.8 и выше, так как используется новый Widget API.  &lt;?php class wpe_comment_widget extends WP_Widget {&#160;&#160; function wpe_comment_widget() { [...]</description>
		<content:encoded><![CDATA[<p>[...] только с WordPress 2.8 и выше, так как используется новый Widget API.  &lt;?php class wpe_comment_widget extends WP_Widget {&#160;&#160; function wpe_comment_widget() { [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adding Twitter to Wordpress &#171; Blue Shrapnel on iliam</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1990</link>
		<dc:creator>Adding Twitter to Wordpress &#171; Blue Shrapnel on iliam</dc:creator>
		<pubDate>Tue, 10 Nov 2009 23:53:25 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1990</guid>
		<description>[...] based on WordPress 2.6, however in the current 2.8.5 widgets are designed using the new widget API, http://wpengineer.com/wordpress-built-a-widget/ so I&#8217;m going to leave that for another [...]</description>
		<content:encoded><![CDATA[<p>[...] based on WordPress 2.6, however in the current 2.8.5 widgets are designed using the new widget API, <a href="http://wpengineer.com/wordpress-built-a-widget/" rel="nofollow" class="liinternal">http://wpengineer.com/wordpress-built-a-widget/</a> so I&#8217;m going to leave that for another [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Chun</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1823</link>
		<dc:creator>Ben Chun</dc:creator>
		<pubDate>Sat, 03 Oct 2009 22:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1823</guid>
		<description>If you run into problems like:

PHP Fatal error: Call to a member function register() on a non-object in ../wp-includes/widgets.php

You may need to adjust your registration code to wait until the WordPress init is completed, like this:

function register_My_RSS_Widget(){
	register_widget(&#039;My_RSS_Widget&#039;);
}
add_action(&#039;init&#039;, &#039;register_My_RSS_Widget&#039;, 1)</description>
		<content:encoded><![CDATA[<p>If you run into problems like:</p>
<p>PHP Fatal error: Call to a member function register() on a non-object in ../wp-includes/widgets.php</p>
<p>You may need to adjust your registration code to wait until the WordPress init is completed, like this:</p>
<p>function register_My_RSS_Widget(){<br />
	register_widget('My_RSS_Widget');<br />
}<br />
add_action('init', 'register_My_RSS_Widget', 1)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tips &#38; Guider till WordPress</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1736</link>
		<dc:creator>Tips &#38; Guider till WordPress</dc:creator>
		<pubDate>Mon, 14 Sep 2009 12:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1736</guid>
		<description>[...] Panels in WordPress10 incredibly cool WordPress shortcodesAn Introduction to WordPress Action HooksBuild A WordPress 2.8 Widget With The New Widget APISom du ser här ovan så delar jag med mig av 8 webbplatser (länkar), vill du ta del av alla tips [...]</description>
		<content:encoded><![CDATA[<p>[...] Panels in WordPress10 incredibly cool WordPress shortcodesAn Introduction to WordPress Action HooksBuild A WordPress 2.8 Widget With The New Widget APISom du ser här ovan så delar jag med mig av 8 webbplatser (länkar), vill du ta del av alla tips [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan Helmig</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1695</link>
		<dc:creator>Bryan Helmig</dc:creator>
		<pubDate>Sat, 05 Sep 2009 20:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1695</guid>
		<description>If you get &quot;Missing argument 2 for WP_Widget::__construct(), &quot; make sure that you when you renamed your widget class that extends WP_Widget(), to name the function with the ops to same thing.</description>
		<content:encoded><![CDATA[<p>If you get "Missing argument 2 for WP_Widget::__construct(), " make sure that you when you renamed your widget class that extends WP_Widget(), to name the function with the ops to same thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Coyier &#187; Blog Archive &#187; Things I Found Interesting Around September 3rd</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1694</link>
		<dc:creator>Chris Coyier &#187; Blog Archive &#187; Things I Found Interesting Around September 3rd</dc:creator>
		<pubDate>Sat, 05 Sep 2009 19:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1694</guid>
		<description>[...] Build a WordPress WidgetI&#8217;m starting to get the hang of this Widget thing   05 Sep  2009 [...]</description>
		<content:encoded><![CDATA[<p>[...] Build a WordPress WidgetI&#8217;m starting to get the hang of this Widget thing   05 Sep  2009 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jungleland - Free WordPress Theme &#124; Theme Lab</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1684</link>
		<dc:creator>Jungleland - Free WordPress Theme &#124; Theme Lab</dc:creator>
		<pubDate>Thu, 03 Sep 2009 20:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1684</guid>
		<description>[...] thanks to WPengineer for the code to this, which I modified [...]</description>
		<content:encoded><![CDATA[<p>[...] thanks to WPengineer for the code to this, which I modified [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress 2.8技巧 for 开发人员 &#124; 帕兰映像</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1628</link>
		<dc:creator>WordPress 2.8技巧 for 开发人员 &#124; 帕兰映像</dc:creator>
		<pubDate>Mon, 17 Aug 2009 21:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1628</guid>
		<description>[...] Build A WordPress 2.8 Widget – WP Engineer [...]</description>
		<content:encoded><![CDATA[<p>[...] Build A WordPress 2.8 Widget – WP Engineer [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillaume</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1608</link>
		<dc:creator>Guillaume</dc:creator>
		<pubDate>Thu, 13 Aug 2009 21:47:20 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1608</guid>
		<description>Not sure what I am doing wrong but I get this error:

Warning: Missing argument 2 for WP_Widget::__construct(), called in \wp-includes\widgets.php on line 320 and defined in\wp-includes\widgets.php on line 93

Great article by the way !</description>
		<content:encoded><![CDATA[<p>Not sure what I am doing wrong but I get this error:</p>
<p>Warning: Missing argument 2 for WP_Widget::__construct(), called in \wp-includes\widgets.php on line 320 and defined in\wp-includes\widgets.php on line 93</p>
<p>Great article by the way !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TZS</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1602</link>
		<dc:creator>TZS</dc:creator>
		<pubDate>Tue, 11 Aug 2009 09:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1602</guid>
		<description>tyvm! it works.</description>
		<content:encoded><![CDATA[<p>tyvm! it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1601</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 11 Aug 2009 09:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1601</guid>
		<description>TZS, 
with a plugin you can use
&lt;pre lang=&quot;php&quot;&gt;
add_action( &#039;widgets_init&#039;, create_function(&#039;&#039;, &#039;return register_widget(&quot;My_RSS_Widget&quot;);&#039;) );
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>TZS,<br />
with a plugin you can use</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'widgets_init'</span><span style="color: #339933;">,</span> <span style="color: #990000;">create_function</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'return register_widget(&quot;My_RSS_Widget&quot;);'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: TZS</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1598</link>
		<dc:creator>TZS</dc:creator>
		<pubDate>Mon, 10 Aug 2009 15:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1598</guid>
		<description>HI!

Nice tut! But, i have a question. When i try to make a plugin by the above code, the WP has dropped an error, such as &quot;register is not a member class&quot; or something else like this...

So how can i make a widget by the API in a plugin file? I have to use add_action() ot register_widget_controller() or what?

Thanks for the help!

TZS</description>
		<content:encoded><![CDATA[<p>HI!</p>
<p>Nice tut! But, i have a question. When i try to make a plugin by the above code, the WP has dropped an error, such as "register is not a member class" or something else like this...</p>
<p>So how can i make a widget by the API in a plugin file? I have to use add_action() ot register_widget_controller() or what?</p>
<p>Thanks for the help!</p>
<p>TZS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip M. Hofer (Frumph)</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1557</link>
		<dc:creator>Philip M. Hofer (Frumph)</dc:creator>
		<pubDate>Mon, 27 Jul 2009 16:23:09 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1557</guid>
		<description>I figured it out, my actual code execution that I would place inside the function widget() area I actually have *above* the class and called by function widget() {}   .. call it My_RSS(){    ..

Now if I go and hardcode it on the site someplace I can do that.

- Phil</description>
		<content:encoded><![CDATA[<p>I figured it out, my actual code execution that I would place inside the function widget() area I actually have *above* the class and called by function widget() {}   .. call it My_RSS(){    ..</p>
<p>Now if I go and hardcode it on the site someplace I can do that.</p>
<p>- Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip M. Hofer (Frumph)</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1556</link>
		<dc:creator>Philip M. Hofer (Frumph)</dc:creator>
		<pubDate>Mon, 27 Jul 2009 16:20:44 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1556</guid>
		<description>That&#039;s not what I asked, read it again.</description>
		<content:encoded><![CDATA[<p>That's not what I asked, read it again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1555</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Mon, 27 Jul 2009 16:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1555</guid>
		<description>You don&#039;t have to call widget(). Wordpress does it for you if the widget is active.</description>
		<content:encoded><![CDATA[<p>You don't have to call widget(). Wordpress does it for you if the widget is active.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress 2.8 Single Post Navigation Widget - WordPress 2.8 Widget API, form(), update(), widget() - dynamicinternet</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1552</link>
		<dc:creator>WordPress 2.8 Single Post Navigation Widget - WordPress 2.8 Widget API, form(), update(), widget() - dynamicinternet</dc:creator>
		<pubDate>Sun, 26 Jul 2009 22:23:57 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1552</guid>
		<description>[...] einem einfachen Beipiel beschrieben, wie man ein Widget programmiert. Dieser Beitrag ist auch auf WP Engineer erschienen und ist dort einer der erfolgreichsten Artikel. Diesmal habe ich mir etwas komplexeres [...]</description>
		<content:encoded><![CDATA[<p>[...] einem einfachen Beipiel beschrieben, wie man ein Widget programmiert. Dieser Beitrag ist auch auf WP Engineer erschienen und ist dort einer der erfolgreichsten Artikel. Diesmal habe ich mir etwas komplexeres [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip M. Hofer (Frumph)</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1551</link>
		<dc:creator>Philip M. Hofer (Frumph)</dc:creator>
		<pubDate>Sun, 26 Jul 2009 18:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1551</guid>
		<description>How would I call that function&quot; function widget($args, $instance) &quot; ?

in 2.5ish it was easy just to do  and it would execute the function.</description>
		<content:encoded><![CDATA[<p>How would I call that function" function widget($args, $instance) " ?</p>
<p>in 2.5ish it was easy just to do  and it would execute the function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1422</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 03 Jul 2009 13:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1422</guid>
		<description>@P.Raman: Nice idea. But it isn&#039;t done in five minutes.</description>
		<content:encoded><![CDATA[<p>@P.Raman: Nice idea. But it isn't done in five minutes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P.Raman</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1413</link>
		<dc:creator>P.Raman</dc:creator>
		<pubDate>Wed, 01 Jul 2009 10:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1413</guid>
		<description>Can you please tell me how to create a widget to show a drop-down list of authors in a multi-author blog using the WP  2.8 widget API.

I find that the default widgets have categories list but  not author list.

Thanks</description>
		<content:encoded><![CDATA[<p>Can you please tell me how to create a widget to show a drop-down list of authors in a multi-author blog using the WP  2.8 widget API.</p>
<p>I find that the default widgets have categories list but  not author list.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1289</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Mon, 15 Jun 2009 15:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1289</guid>
		<description>Thanks Christian! Fixed.</description>
		<content:encoded><![CDATA[<p>Thanks Christian! Fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Schenk</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1288</link>
		<dc:creator>Christian Schenk</dc:creator>
		<pubDate>Mon, 15 Jun 2009 15:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1288</guid>
		<description>@Michael: your snippet works as expected.

There&#039;s a typo in the code above: inside the My_RSS_Widget class, line 10 inside the widget function - &quot;wp $entry_title&quot; should be &quot;$entry_title&quot;.

Anyway, thanks for the great post!</description>
		<content:encoded><![CDATA[<p>@Michael: your snippet works as expected.</p>
<p>There's a typo in the code above: inside the My_RSS_Widget class, line 10 inside the widget function - "wp $entry_title" should be "$entry_title".</p>
<p>Anyway, thanks for the great post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Extensive Wordpress 2.8 Getting Started Guide&#160;&#124;&#160;tripwire magazine</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1274</link>
		<dc:creator>Extensive Wordpress 2.8 Getting Started Guide&#160;&#124;&#160;tripwire magazine</dc:creator>
		<pubDate>Sat, 13 Jun 2009 13:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1274</guid>
		<description>[...] Build a WordPress 2.8 Widget with New Widget API – WPEngineer [...]</description>
		<content:encoded><![CDATA[<p>[...] Build a WordPress 2.8 Widget with New Widget API – WPEngineer [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/wordpress-built-a-widget/#comment-1271</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 12 Jun 2009 19:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1023#comment-1271</guid>
		<description>Not tested:
&lt;pre lang=&quot;php&quot;&gt;
if (version_compare($wp_version, &#039;2.8&#039;, &#039;&gt;=&#039;)) {
    class My_RSS_Widget extends WP_Widget {
    //code inside the class 
    }
    register_widget(&#039;My_RSS_Widget&#039;);
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Not tested:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">version_compare</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wp_version</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'2.8'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&gt;='</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">class</span> My_RSS_Widget <span style="color: #000000; font-weight: bold;">extends</span> WP_Widget <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">//code inside the class </span>
    <span style="color: #009900;">&#125;</span>
    register_widget<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'My_RSS_Widget'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
</channel>
</rss>
