<?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>Media Surgery &#187; Coding</title>
	<atom:link href="http://www.mediasurgery.co.uk/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mediasurgery.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 01 Sep 2010 14:16:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Excluding current post / url in WordPress Loop</title>
		<link>http://www.mediasurgery.co.uk/2009/05/30/excluding-current-post-url-in-wordpress-loop/</link>
		<comments>http://www.mediasurgery.co.uk/2009/05/30/excluding-current-post-url-in-wordpress-loop/#comments</comments>
		<pubDate>Sat, 30 May 2009 10:15:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.mediasurgery.co.uk/?p=133</guid>
		<description><![CDATA[A very quick post today but hopefully this will help a few people. WordPress is a great tool for a small website requiring regular editing. While using the loop i wanted to find a way to exclude the current pages url from a list of links. There is no point in a page linking to [...]]]></description>
			<content:encoded><![CDATA[<p>A very quick post today but hopefully this will help a few people.</p>
<p>WordPress is a great tool for a small website requiring regular editing. While using the loop i wanted to find a way to exclude the current pages url from a list of links. There is no point in a page linking to itself!</p>
<p>By using the the post__not_in function its easy to do.</p>
<pre>&lt;?php query_posts(array('showposts'=&gt; 6,'post__not_in' =&gt; array($post-&gt;ID)));
while (have_posts()) : the_post(); ?&gt;
&lt;li&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php endwhile;?&gt;</pre>
<p>Did it work? Any problems? Post a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mediasurgery.co.uk/2009/05/30/excluding-current-post-url-in-wordpress-loop/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
