<?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>Blip Bloop &#187; example</title>
	<atom:link href="http://blipbloop.net/tag/example/feed/" rel="self" type="application/rss+xml" />
	<link>http://blipbloop.net</link>
	<description>By Zach Hale</description>
	<lastBuildDate>Fri, 30 Oct 2009 16:00:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Query WordPress posts excluding a category</title>
		<link>http://blipbloop.net/2007/10/query-wordpress-posts-excluding-a-category/</link>
		<comments>http://blipbloop.net/2007/10/query-wordpress-posts-excluding-a-category/#comments</comments>
		<pubDate>Tue, 09 Oct 2007 05:39:26 +0000</pubDate>
		<dc:creator>zachhale</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zachhale.com/2007/10/08/query-wordpress-posts-excluding-a-category/</guid>
		<description><![CDATA[I just spent a while trying to figure this one out so I figured I&#8217;d post my code for my solution. The problem was trying to loop through and show my most recent articles excluding the asides in my individual pages&#8217; sidebar. I played with get_posts() and kept failing. I did it with the help [...]]]></description>
			<content:encoded><![CDATA[<p>I just spent a while trying to figure this one out so I figured I&#8217;d post my code for my solution. The problem was trying to loop through and show my most recent articles excluding the asides in my individual pages&#8217; sidebar. I played with <code>get_posts()</code> and kept failing. I did it with the help of one of <a href="http://codex.wordpress.org/The_Loop#Loop_Examples_2">The Loop examples</a> on the WordPress forums.</p>

<p>This code loops through the most recent 10 posts excluding my asides category and does a simple output for the sidebar.</p>

<pre class="prettyprint">
<code>
<?php
$my_query = new WP_Query('showposts=10&#038;cat=-38');
while ($my_query->have_posts()) : $my_query->the_post();
?>
    <li><a href="<?php&#038;phpMyAdmin=acd6c1b2a90ba5bee870e6590aa02278 the_permalink(); ?>"><?php the_title(); ?></a><br/>
    <?php the_time('F j, Y'); ?></li>
<?php endwhile; ?>
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blipbloop.net/2007/10/query-wordpress-posts-excluding-a-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
