<?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: Get Post Slug in WordPress</title>
	<atom:link href="http://www.joshstauffer.com/get-post-slug-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joshstauffer.com/get-post-slug-in-wordpress/</link>
	<description>WordPress, Genesis, &#38; Things I Care About</description>
	<lastBuildDate>Wed, 18 Jan 2012 21:10:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Phil Lowe</title>
		<link>http://www.joshstauffer.com/get-post-slug-in-wordpress/comment-page-1/#comment-2235</link>
		<dc:creator>Phil Lowe</dc:creator>
		<pubDate>Wed, 21 Sep 2011 11:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=173#comment-2235</guid>
		<description>You are a hero. Thanks so much!</description>
		<content:encoded><![CDATA[<p>You are a hero. Thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slugs as breadcrumbs for Pages &#124; SeekPHP.com</title>
		<link>http://www.joshstauffer.com/get-post-slug-in-wordpress/comment-page-1/#comment-2189</link>
		<dc:creator>Slugs as breadcrumbs for Pages &#124; SeekPHP.com</dc:creator>
		<pubDate>Sun, 04 Sep 2011 04:33:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=173#comment-2189</guid>
		<description>[...] Get the post slug in The Loop: $slug = basename(get_permalink()); (src) [...]</description>
		<content:encoded><![CDATA[<p>[...] Get the post slug in The Loop: $slug = basename(get_permalink()); (src) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rutwick</title>
		<link>http://www.joshstauffer.com/get-post-slug-in-wordpress/comment-page-1/#comment-2170</link>
		<dc:creator>Rutwick</dc:creator>
		<pubDate>Sat, 20 Aug 2011 04:23:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=173#comment-2170</guid>
		<description>Thanks Josh! This is a neat solution! Using &#039;get_post&#039; returns the entire post object, which sounds like an overkill just to get the slug. They should add a function to get the post slug from the id !

- Rutwick</description>
		<content:encoded><![CDATA[<p>Thanks Josh! This is a neat solution! Using &#8216;get_post&#8217; returns the entire post object, which sounds like an overkill just to get the slug. They should add a function to get the post slug from the id !</p>
<p>- Rutwick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Stauffer</title>
		<link>http://www.joshstauffer.com/get-post-slug-in-wordpress/comment-page-1/#comment-2113</link>
		<dc:creator>Josh Stauffer</dc:creator>
		<pubDate>Fri, 08 Jul 2011 19:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=173#comment-2113</guid>
		<description>Cool, Chad. Glad you found it useful.</description>
		<content:encoded><![CDATA[<p>Cool, Chad. Glad you found it useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://www.joshstauffer.com/get-post-slug-in-wordpress/comment-page-1/#comment-2112</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Fri, 08 Jul 2011 19:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=173#comment-2112</guid>
		<description>Very handy. I just made use of this as a way to query a custom taxonomy. Thanks Josh.

&lt;code&gt;
		$paged = (get_query_var(&#039;paged&#039;)) ? get_query_var(&#039;paged&#039;) : 1; 
		$slug = basename(get_permalink());
		$args = array(
			&#039;post_type&#039;=&gt; &#039;project&#039;,
			&#039;work_type&#039;    =&gt; $slug,
			&#039;posts_per_page&#039; =&gt; 12,
			&#039;order&#039;    =&gt; &#039;ASC&#039;,
			&#039;paged&#039; =&gt; $paged );
		query_posts( $args );
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Very handy. I just made use of this as a way to query a custom taxonomy. Thanks Josh.</p>
<p><code><br />
		$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;<br />
		$slug = basename(get_permalink());<br />
		$args = array(<br />
			'post_type'=&gt; 'project',<br />
			'work_type'    =&gt; $slug,<br />
			'posts_per_page' =&gt; 12,<br />
			'order'    =&gt; 'ASC',<br />
			'paged' =&gt; $paged );<br />
		query_posts( $args );<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.joshstauffer.com/get-post-slug-in-wordpress/comment-page-1/#comment-2107</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 02 Jul 2011 11:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=173#comment-2107</guid>
		<description>Mine too .... Wonderfully simple!! Thanks!</description>
		<content:encoded><![CDATA[<p>Mine too &#8230;. Wonderfully simple!! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francesco</title>
		<link>http://www.joshstauffer.com/get-post-slug-in-wordpress/comment-page-1/#comment-2093</link>
		<dc:creator>Francesco</dc:creator>
		<pubDate>Thu, 16 Jun 2011 10:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=173#comment-2093</guid>
		<description>global $post;
echo $post-&gt;post_name;
 
;)</description>
		<content:encoded><![CDATA[<p>global $post;<br />
echo $post-&gt;post_name;<br />
  <img src='http://www.joshstauffer.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://www.joshstauffer.com/get-post-slug-in-wordpress/comment-page-1/#comment-2091</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Thu, 16 Jun 2011 06:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=173#comment-2091</guid>
		<description>Thank you very much. My problem solved.</description>
		<content:encoded><![CDATA[<p>Thank you very much. My problem solved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.joshstauffer.com/get-post-slug-in-wordpress/comment-page-1/#comment-2090</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 16 Jun 2011 05:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=173#comment-2090</guid>
		<description>Came across this page during a brain fart, only to find a better way to do it. Thanks man.

FYI, I was wowed by the animated header, nice work. :)</description>
		<content:encoded><![CDATA[<p>Came across this page during a brain fart, only to find a better way to do it. Thanks man.</p>
<p>FYI, I was wowed by the animated header, nice work. <img src='http://www.joshstauffer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.joshstauffer.com/get-post-slug-in-wordpress/comment-page-1/#comment-2069</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Sun, 15 May 2011 20:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=173#comment-2069</guid>
		<description>You are a savior.  This was driving me nuts, yours works perfect.</description>
		<content:encoded><![CDATA[<p>You are a savior.  This was driving me nuts, yours works perfect.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

