<?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: Even A Widgetifyr Stumps Me</title>
	<atom:link href="http://www.wptavern.com/even-a-widgetifyr-stumps-me/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wptavern.com/even-a-widgetifyr-stumps-me</link>
	<description>Where Every Drink Is On The House</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:56:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Glenn Bennett</title>
		<link>http://www.wptavern.com/even-a-widgetifyr-stumps-me#comment-1524</link>
		<dc:creator>Glenn Bennett</dc:creator>
		<pubDate>Sun, 31 May 2009 13:58:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.wptavern.com/?p=1359#comment-1524</guid>
		<description>Jeff,

Thanks for checking out our tool. I think you get a better idea of who would benefit from our tool by reading our &lt;a href=&quot;http://blog.widgetifyr.com/2009/05/who-needs-our-tool/&quot; rel=&quot;nofollow&quot;&gt;post &lt;/a&gt;on the subject.

Here&#039;s the corrected code that would have made your widget work.

Since we include your code as part of a function you need to get our of php mode &quot;?&gt;&quot; and at the end you need to start php end with &quot;&lt;?PHP&quot;.

Also I finished out the loop for you. You just didn&#039;t copy enough from the wordpress site.


&lt;pre lang=&quot;php&quot;&gt;
?&gt;
&lt;ul&gt;
 &lt;?php
 global $post;
 $myposts = get_posts(&#039;numberposts=5&amp;offset=1&amp;category=1&#039;);
 foreach($myposts as $post) :
 ?&gt;
    &lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink(); ? rel=&quot;nofollow&quot;&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;?php endforeach; ?&gt;
 &lt;/ul&gt;
&lt;?php
&lt;/pre&gt;

I hope you find this useful.

Glenn</description>
		<content:encoded><![CDATA[<p>Jeff,</p>
<p>Thanks for checking out our tool. I think you get a better idea of who would benefit from our tool by reading our <a href="http://blog.widgetifyr.com/2009/05/who-needs-our-tool/" rel="nofollow">post </a>on the subject.</p>
<p>Here&#8217;s the corrected code that would have made your widget work.</p>
<p>Since we include your code as part of a function you need to get our of php mode &#8220;?&gt;&#8221; and at the end you need to start php end with &#8220;&lt;?PHP&#8221;.</p>
<p>Also I finished out the loop for you. You just didn&#8217;t copy enough from the wordpress site.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">?&gt;
&lt;ul&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?php</span>
 <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
 <span style="color: #000088;">$myposts</span> <span style="color: #339933;">=</span> get_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'numberposts=5&amp;offset=1&amp;category=1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$myposts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
 <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> ? rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nofollow&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #0000ff;">&quot;&gt;&lt;?php the_title(); ?&gt;</span>&lt;/a&gt;&lt;/li&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
 &lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span></pre></div></div>

<p>I hope you find this useful.</p>
<p>Glenn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Who Needs Our Tool&#160;&#124;&#160;Widgetifyr.com</title>
		<link>http://www.wptavern.com/even-a-widgetifyr-stumps-me#comment-1517</link>
		<dc:creator>Who Needs Our Tool&#160;&#124;&#160;Widgetifyr.com</dc:creator>
		<pubDate>Sun, 31 May 2009 02:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.wptavern.com/?p=1359#comment-1517</guid>
		<description>[...] a look at our tool and get their input. I send out a request to Jeff Chandler the WordPress Tavern (WPTavern) to take look at our tool. He obviously didn’t get the idea of our tool. Which was an eye opener [...]</description>
		<content:encoded><![CDATA[<p>[...] a look at our tool and get their input. I send out a request to Jeff Chandler the WordPress Tavern (WPTavern) to take look at our tool. He obviously didn’t get the idea of our tool. Which was an eye opener [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Stewart</title>
		<link>http://www.wptavern.com/even-a-widgetifyr-stumps-me#comment-1379</link>
		<dc:creator>Ian Stewart</dc:creator>
		<pubDate>Fri, 22 May 2009 20:52:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.wptavern.com/?p=1359#comment-1379</guid>
		<description>Just commenting to say, yes, you &lt;em&gt;should&lt;/em&gt; be using Justin&#039;s Query Posts Widget. It&#039;s super impressive.</description>
		<content:encoded><![CDATA[<p>Just commenting to say, yes, you <em>should</em> be using Justin&#8217;s Query Posts Widget. It&#8217;s super impressive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Tadlock</title>
		<link>http://www.wptavern.com/even-a-widgetifyr-stumps-me#comment-1376</link>
		<dc:creator>Justin Tadlock</dc:creator>
		<pubDate>Fri, 22 May 2009 19:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.wptavern.com/?p=1359#comment-1376</guid>
		<description>I could code a new widget in 10 minutes (assuming I already have my function(s) created).  There&#039;s really no need for developers to work with a widget creator, especially with the new widget class in WP 2.8.  Things like this should be for Average Joe to use.</description>
		<content:encoded><![CDATA[<p>I could code a new widget in 10 minutes (assuming I already have my function(s) created).  There&#8217;s really no need for developers to work with a widget creator, especially with the new widget class in WP 2.8.  Things like this should be for Average Joe to use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.wptavern.com/even-a-widgetifyr-stumps-me#comment-1375</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 22 May 2009 19:57:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.wptavern.com/?p=1359#comment-1375</guid>
		<description>I looked at this a little while back and it looked like it could make things easier but I did think the wrapper around it made it look simpler than it would be. I guess you&#039;ve proved me right.

The thing is, there are some amazing widgets (Justin Tadlock&#039;s for example) that let you run just about any query you want so it is hard to think of a situation where you would need to create your own.

The problem with your code is that you started a loop but never closed it again, so PHP was expecting an endforeach and got the end of the function instead.

&lt;abbr&gt;&lt;em&gt;Andrew’s last blog post..&lt;a href=&quot;http://www.wp-fun.co.uk/2009/05/21/wltc-plugin-competition-max-image-size-control/&quot; rel=&quot;nofollow&quot;&gt;WLTC Plugin Competition: Max Image Size Control&lt;/a&gt;&lt;/abbr&gt;&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>I looked at this a little while back and it looked like it could make things easier but I did think the wrapper around it made it look simpler than it would be. I guess you&#8217;ve proved me right.</p>
<p>The thing is, there are some amazing widgets (Justin Tadlock&#8217;s for example) that let you run just about any query you want so it is hard to think of a situation where you would need to create your own.</p>
<p>The problem with your code is that you started a loop but never closed it again, so PHP was expecting an endforeach and got the end of the function instead.</p>
<p><abbr><em>Andrew’s last blog post..<a href="http://www.wp-fun.co.uk/2009/05/21/wltc-plugin-competition-max-image-size-control/" rel="nofollow">WLTC Plugin Competition: Max Image Size Control</a></em></abbr></p>
]]></content:encoded>
	</item>
</channel>
</rss>

