<?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 for A WordPress Programmer</title>
	<atom:link href="http://wpprogrammer.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpprogrammer.com</link>
	<description>My Experiments with WordPress</description>
	<lastBuildDate>Sun, 31 Oct 2010 21:18:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Comment on Feature Comments &#8211; WordPress Plugin by Chris</title>
		<link>http://wpprogrammer.com/feature-comments-wordpress-plugin/comment-page-1/#comment-155</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sun, 31 Oct 2010 21:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpprogrammer.com/?p=4#comment-155</guid>
		<description>Im confused, I Feature, a comment.. and what do i do from there, nothing seems to happen... I was hoping to have something like a Stick Comment, so my featured comments would remain on top of all comments. Am i missing something?</description>
		<content:encoded><![CDATA[<p>Im confused, I Feature, a comment.. and what do i do from there, nothing seems to happen&#8230; I was hoping to have something like a Stick Comment, so my featured comments would remain on top of all comments. Am i missing something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Add a Category or Tag to a post programatically by David</title>
		<link>http://wpprogrammer.com/snippets/add-a-category-or-tag-to-a-post-programatically/comment-page-1/#comment-154</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 30 Oct 2010 03:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://wpprogrammer.com/?post_type=snippets&#038;p=196#comment-154</guid>
		<description>Hmm.. the top half got hacked off.  Here is the code again, above the commentary:

$i = 0;			//number in array before loop starts
$allposts = array();		
$postslist = get_posts(&#039;numberposts=10&amp;category=1&#039;); 
foreach ($postslist as $post){
    setup_postdata($post);
	$allposts[$i] = $post-&gt;ID;  //get post id for each post
	$i++;
        // code to apply to each post goes here. use $allposts[$i] as the post (basically accounts for all of them) you want to edit.
}</description>
		<content:encoded><![CDATA[<p>Hmm.. the top half got hacked off.  Here is the code again, above the commentary:</p>
<p>$i = 0;			//number in array before loop starts<br />
$allposts = array();<br />
$postslist = get_posts(&#8216;numberposts=10&amp;category=1&#8242;);<br />
foreach ($postslist as $post){<br />
    setup_postdata($post);<br />
	$allposts[$i] = $post-&gt;ID;  //get post id for each post<br />
	$i++;<br />
        // code to apply to each post goes here. use $allposts[$i] as the post (basically accounts for all of them) you want to edit.<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Add a Category or Tag to a post programatically by David</title>
		<link>http://wpprogrammer.com/snippets/add-a-category-or-tag-to-a-post-programatically/comment-page-1/#comment-153</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 30 Oct 2010 03:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://wpprogrammer.com/?post_type=snippets&#038;p=196#comment-153</guid>
		<description>This code should do it:

ID;  // Get post ID for each post in category. 
	$i++;  // $i increments to go through array each cycle through the loop.
       //Here&#039;s where you want to include the code that adds the tag to each post.  (each time through the loop, it&#039;s working with a new post)
}
?&gt;
This function, you can just take out &#039;numberposts=10&#039; to go through all posts in category (I haven&#039;t double checked that, but it should work)
$postslist = get_posts(&#039;numberposts=10&amp; category=1&#039;); 

Here&#039;s all the functions used for further options:
array() --&gt; just look up php array for more details
get_posts() --&gt; http://codex.wordpress.org/Template_Tags/get_posts
*You need the category ID here.  To make things a lot simpler, you can install this plugin to show ID&#039;s of posts and categories on admin pages for WP 3.0: http://wordpress.org/extend/plugins/simply-show-ids/

foreach ($postslist as $post) {} - make sure you have those open/close squiggly brackets around function.
- http://php.net/manual/en/control-structures.foreach.php

Of course adjust the opening and closing php tags according to context.

I could go into further detail, but given you made this comment 2month ago, you&#039;ll probably never see this.  Anyone who would like more help, feel free to e-mail me at: david@origamifolder.com

cheers!</description>
		<content:encoded><![CDATA[<p>This code should do it:</p>
<p>ID;  // Get post ID for each post in category.<br />
	$i++;  // $i increments to go through array each cycle through the loop.<br />
       //Here&#8217;s where you want to include the code that adds the tag to each post.  (each time through the loop, it&#8217;s working with a new post)<br />
}<br />
?&gt;<br />
This function, you can just take out &#8216;numberposts=10&#8242; to go through all posts in category (I haven&#8217;t double checked that, but it should work)<br />
$postslist = get_posts(&#8216;numberposts=10&amp; category=1&#8242;); </p>
<p>Here&#8217;s all the functions used for further options:<br />
array() &#8211;&gt; just look up php array for more details<br />
get_posts() &#8211;&gt; <a href="http://codex.wordpress.org/Template_Tags/get_posts" rel="nofollow">http://codex.wordpress.org/Template_Tags/get_posts</a><br />
*You need the category ID here.  To make things a lot simpler, you can install this plugin to show ID&#8217;s of posts and categories on admin pages for WP 3.0: <a href="http://wordpress.org/extend/plugins/simply-show-ids/" rel="nofollow">http://wordpress.org/extend/plugins/simply-show-ids/</a></p>
<p>foreach ($postslist as $post) {} &#8211; make sure you have those open/close squiggly brackets around function.<br />
- <a href="http://php.net/manual/en/control-structures.foreach.php" rel="nofollow">http://php.net/manual/en/control-structures.foreach.php</a></p>
<p>Of course adjust the opening and closing php tags according to context.</p>
<p>I could go into further detail, but given you made this comment 2month ago, you&#8217;ll probably never see this.  Anyone who would like more help, feel free to e-mail me at: <a href="mailto:david@origamifolder.com">david@origamifolder.com</a></p>
<p>cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Add a Category or Tag to a post programatically by David</title>
		<link>http://wpprogrammer.com/snippets/add-a-category-or-tag-to-a-post-programatically/comment-page-1/#comment-152</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 30 Oct 2010 03:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://wpprogrammer.com/?post_type=snippets&#038;p=196#comment-152</guid>
		<description>It would have been so very helpful had you detailed the full capacity of that function!  I had a lot of errors with it too, as it seems do others.

Here&#039;s the full documentation:
http://codex.wordpress.org/Function_Reference/wp_set_object_terms

Any chance you could include the link at the bottom of your post for those who&#039;d like to understand it more completely?  Thanks!

Cheers!</description>
		<content:encoded><![CDATA[<p>It would have been so very helpful had you detailed the full capacity of that function!  I had a lot of errors with it too, as it seems do others.</p>
<p>Here&#8217;s the full documentation:<br />
<a href="http://codex.wordpress.org/Function_Reference/wp_set_object_terms" rel="nofollow">http://codex.wordpress.org/Function_Reference/wp_set_object_terms</a></p>
<p>Any chance you could include the link at the bottom of your post for those who&#8217;d like to understand it more completely?  Thanks!</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Feature Comments &#8211; WordPress Plugin by odabas</title>
		<link>http://wpprogrammer.com/feature-comments-wordpress-plugin/comment-page-1/#comment-149</link>
		<dc:creator>odabas</dc:creator>
		<pubDate>Sun, 24 Oct 2010 03:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpprogrammer.com/?p=4#comment-149</guid>
		<description>I am running WP 3.01, PHP 5.2.9, already did CSS modification but still can&#039;t change the look of the &#039;featured&#039; and &#039;buried&#039; comment. No errors or whatsoever. What am I missing?</description>
		<content:encoded><![CDATA[<p>I am running WP 3.01, PHP 5.2.9, already did CSS modification but still can&#8217;t change the look of the &#8216;featured&#8217; and &#8216;buried&#8217; comment. No errors or whatsoever. What am I missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Display Feedburner Subscribers Count by Utkarsh Kukreti</title>
		<link>http://wpprogrammer.com/snippets/display-feedburner-subscribers-count/comment-page-1/#comment-146</link>
		<dc:creator>Utkarsh Kukreti</dc:creator>
		<pubDate>Mon, 04 Oct 2010 16:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://wpprogrammer.com/?post_type=snippets&#038;p=236#comment-146</guid>
		<description>Now I was being lazy ;)

I&#039;ll see what other fields are supported and update this.</description>
		<content:encoded><![CDATA[<p>Now I was being lazy <img src='http://wpprogrammer.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I&#8217;ll see what other fields are supported and update this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Display Feedburner Subscribers Count by Rarst</title>
		<link>http://wpprogrammer.com/snippets/display-feedburner-subscribers-count/comment-page-1/#comment-145</link>
		<dc:creator>Rarst</dc:creator>
		<pubDate>Sat, 02 Oct 2010 08:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://wpprogrammer.com/?post_type=snippets&#038;p=236#comment-145</guid>
		<description>Nice job adapting my Twitter snippet! I actually was lazy to and still use older and clunky code for feedburner.

One suggestion - don&#039;t hardcode it for &quot;circulation&quot; field, make it more flexible (like Twitter snippet that can fetch bunch of different stuff). There are some more fields that can be fetched (&quot;reach&quot; and something else I don&#039;t remember) .</description>
		<content:encoded><![CDATA[<p>Nice job adapting my Twitter snippet! I actually was lazy to and still use older and clunky code for feedburner.</p>
<p>One suggestion &#8211; don&#8217;t hardcode it for &#8220;circulation&#8221; field, make it more flexible (like Twitter snippet that can fetch bunch of different stuff). There are some more fields that can be fetched (&#8220;reach&#8221; and something else I don&#8217;t remember) .</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Add a Category or Tag to a post programatically by Marco</title>
		<link>http://wpprogrammer.com/snippets/add-a-category-or-tag-to-a-post-programatically/comment-page-1/#comment-142</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Sun, 05 Sep 2010 09:20:52 +0000</pubDate>
		<guid isPermaLink="false">http://wpprogrammer.com/?post_type=snippets&#038;p=196#comment-142</guid>
		<description>What if I need to add a tag to all the posts in a given category? 
ex. tag= blue in category= sky</description>
		<content:encoded><![CDATA[<p>What if I need to add a tag to all the posts in a given category?<br />
ex. tag= blue in category= sky</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Get number of posts belonging to a particular category, tag or custom taxonomy. by Christian</title>
		<link>http://wpprogrammer.com/snippets/get-number-of-posts-belonging-to-a-particular-category-tag-or-custom-taxonomy/comment-page-1/#comment-141</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Fri, 03 Sep 2010 23:47:13 +0000</pubDate>
		<guid isPermaLink="false">http://wpprogrammer.com/?post_type=snippets&#038;p=99#comment-141</guid>
		<description>Thanks, i was exactly looking for that! Works fantastic!

Kind regards,

Christian</description>
		<content:encoded><![CDATA[<p>Thanks, i was exactly looking for that! Works fantastic!</p>
<p>Kind regards,</p>
<p>Christian</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Add a Category or Tag to a post programatically by Gavin</title>
		<link>http://wpprogrammer.com/snippets/add-a-category-or-tag-to-a-post-programatically/comment-page-1/#comment-139</link>
		<dc:creator>Gavin</dc:creator>
		<pubDate>Tue, 31 Aug 2010 13:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://wpprogrammer.com/?post_type=snippets&#038;p=196#comment-139</guid>
		<description>And is this added in the functions.php file?</description>
		<content:encoded><![CDATA[<p>And is this added in the functions.php file?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: wpprogrammer.com @ 2012-05-18 17:27:09 -->
