<?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: How to get the current WordPress Page Name?</title>
	<atom:link href="http://www.arkinex.com/wordpress/79/current-wordpress-page-name/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arkinex.com/wordpress/79/current-wordpress-page-name/</link>
	<description>the place where all my code can be viewed</description>
	<lastBuildDate>Wed, 28 Jul 2010 00:19:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: nilocmai</title>
		<link>http://www.arkinex.com/wordpress/79/current-wordpress-page-name/comment-page-1/#comment-11920</link>
		<dc:creator>nilocmai</dc:creator>
		<pubDate>Tue, 27 Jul 2010 03:50:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.arkinex.com/?p=79#comment-11920</guid>
		<description>Thanks, I love you! You&#039;ve saved my sanity.</description>
		<content:encoded><![CDATA[<p>Thanks, I love you! You&#8217;ve saved my sanity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rahul</title>
		<link>http://www.arkinex.com/wordpress/79/current-wordpress-page-name/comment-page-1/#comment-11433</link>
		<dc:creator>rahul</dc:creator>
		<pubDate>Wed, 16 Jun 2010 14:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.arkinex.com/?p=79#comment-11433</guid>
		<description>Thats exact what i needed.... Thanks a lot dear</description>
		<content:encoded><![CDATA[<p>Thats exact what i needed&#8230;. Thanks a lot dear</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.arkinex.com/wordpress/79/current-wordpress-page-name/comment-page-1/#comment-11027</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 06 May 2010 12:11:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.arkinex.com/?p=79#comment-11027</guid>
		<description>^^ seems to have stripped out my code 

so above use: wp_title(&#039;&#039;,true,&#039;&#039;); 

to get the pagename in the class</description>
		<content:encoded><![CDATA[<p>^^ seems to have stripped out my code </p>
<p>so above use: wp_title(&#8221;,true,&#8221;); </p>
<p>to get the pagename in the class</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.arkinex.com/wordpress/79/current-wordpress-page-name/comment-page-1/#comment-11026</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 06 May 2010 12:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.arkinex.com/?p=79#comment-11026</guid>
		<description>can you not use &quot;wp_title&quot; to get the pagename?

eg


so on the page echo:
&lt;div id=&quot;Site&quot; class=&quot;page_&quot;&gt;


http://codex.wordpress.org/Template_Tags/wp_title</description>
		<content:encoded><![CDATA[<p>can you not use &#8220;wp_title&#8221; to get the pagename?</p>
<p>eg</p>
<p>so on the page echo:<br />
&lt;div id=&quot;Site&quot; class=&quot;page_&#8221;&gt;</p>
<p><a href="http://codex.wordpress.org/Template_Tags/wp_title" rel="nofollow">http://codex.wordpress.org/Template_Tags/wp_title</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Clark</title>
		<link>http://www.arkinex.com/wordpress/79/current-wordpress-page-name/comment-page-1/#comment-11003</link>
		<dc:creator>John Clark</dc:creator>
		<pubDate>Wed, 05 May 2010 03:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.arkinex.com/?p=79#comment-11003</guid>
		<description>It is also easy to backup and transfer all your websites from one server to another server if you have cPanel installed:-~</description>
		<content:encoded><![CDATA[<p>It is also easy to backup and transfer all your websites from one server to another server if you have cPanel installed:-~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Irvin</title>
		<link>http://www.arkinex.com/wordpress/79/current-wordpress-page-name/comment-page-1/#comment-10873</link>
		<dc:creator>Kevin Irvin</dc:creator>
		<pubDate>Sun, 25 Apr 2010 22:09:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.arkinex.com/?p=79#comment-10873</guid>
		<description>Those boat look great, I love to go to the sea in a boat thanks for the article.</description>
		<content:encoded><![CDATA[<p>Those boat look great, I love to go to the sea in a boat thanks for the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.arkinex.com/wordpress/79/current-wordpress-page-name/comment-page-1/#comment-10566</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Sat, 27 Mar 2010 19:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.arkinex.com/?p=79#comment-10566</guid>
		<description>If you want to get the slug name try this

Put this function in your function.php page

&lt;!--  get the slug name of this page --&gt;
ID, ARRAY_A);
$slug = $post_data[&#039;post_name&#039;];
return $slug; }
?&gt;


Put this script into your page (header is where I have mine)



Now you can use it in the body tag. *this is useful when adding CSS to specific paged. eg: custom banners, different colour, different behaviour for rollovers etc.
&lt;body class=&quot;&quot;&gt;
…all the page stuff in between…


OR part of an if statement
if ($slugName == &quot;home&quot;) {
do something eg: load a big home page picture
}</description>
		<content:encoded><![CDATA[<p>If you want to get the slug name try this</p>
<p>Put this function in your function.php page</p>
<p><!--  get the slug name of this page --><br />
ID, ARRAY_A);<br />
$slug = $post_data['post_name'];<br />
return $slug; }<br />
?&gt;</p>
<p>Put this script into your page (header is where I have mine)</p>
<p>Now you can use it in the body tag. *this is useful when adding CSS to specific paged. eg: custom banners, different colour, different behaviour for rollovers etc.<br />
&lt;body class=&quot;&#8221;&gt;<br />
…all the page stuff in between…</p>
<p>OR part of an if statement<br />
if ($slugName == &#8220;home&#8221;) {<br />
do something eg: load a big home page picture<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ugh</title>
		<link>http://www.arkinex.com/wordpress/79/current-wordpress-page-name/comment-page-1/#comment-9913</link>
		<dc:creator>ugh</dc:creator>
		<pubDate>Wed, 17 Feb 2010 05:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.arkinex.com/?p=79#comment-9913</guid>
		<description>What&#039;s up with the redirection bs going on on this page? It loads and then unless I stop it redirects to some obtrusive page trying to sell something. Have you been hacked or is that intentional?</description>
		<content:encoded><![CDATA[<p>What&#8217;s up with the redirection bs going on on this page? It loads and then unless I stop it redirects to some obtrusive page trying to sell something. Have you been hacked or is that intentional?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dabe</title>
		<link>http://www.arkinex.com/wordpress/79/current-wordpress-page-name/comment-page-1/#comment-9231</link>
		<dc:creator>dabe</dc:creator>
		<pubDate>Thu, 24 Dec 2009 09:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.arkinex.com/?p=79#comment-9231</guid>
		<description>You could do: get_query_var(&#039;name&#039;) to get the name of current post/page.</description>
		<content:encoded><![CDATA[<p>You could do: get_query_var(&#8216;name&#8217;) to get the name of current post/page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sharon</title>
		<link>http://www.arkinex.com/wordpress/79/current-wordpress-page-name/comment-page-1/#comment-8601</link>
		<dc:creator>sharon</dc:creator>
		<pubDate>Fri, 09 Oct 2009 19:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.arkinex.com/?p=79#comment-8601</guid>
		<description>nice trick, but doesn&#039;t seem to work with sub-pages, my current struggle.....

&gt;: &#124;</description>
		<content:encoded><![CDATA[<p>nice trick, but doesn&#8217;t seem to work with sub-pages, my current struggle&#8230;..</p>
<p>&gt;: |</p>
]]></content:encoded>
	</item>
</channel>
</rss>
