<?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 ID by Page Name</title>
	<atom:link href="http://www.web-templates.nu/2008/09/02/get-id-by-page-name/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.web-templates.nu/2008/09/02/get-id-by-page-name/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 20 Aug 2010 07:17:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rob</title>
		<link>http://www.web-templates.nu/2008/09/02/get-id-by-page-name/comment-page-1/#comment-7463</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Thu, 29 Jul 2010 18:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-templates.nu/?p=35#comment-7463</guid>
		<description>thanks! nice</description>
		<content:encoded><![CDATA[<p>thanks! nice</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dwight</title>
		<link>http://www.web-templates.nu/2008/09/02/get-id-by-page-name/comment-page-1/#comment-6399</link>
		<dc:creator>Dwight</dc:creator>
		<pubDate>Mon, 19 Apr 2010 06:52:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-templates.nu/?p=35#comment-6399</guid>
		<description>Thanks. It helps a lot. If you truly want only PAGE results and no POST results mixed in and you have pages and posts which may have the same title, use this:

	$page_name_id = $wpdb-&gt;get_var(&quot;SELECT ID FROM $wpdb-&gt;posts WHERE post_name = &#039;&quot;.$page_name.&quot;&#039; AND post_type = &#039;page&#039; &quot;);</description>
		<content:encoded><![CDATA[<p>Thanks. It helps a lot. If you truly want only PAGE results and no POST results mixed in and you have pages and posts which may have the same title, use this:</p>
<p>	$page_name_id = $wpdb-&gt;get_var(&#8220;SELECT ID FROM $wpdb-&gt;posts WHERE post_name = &#8216;&#8221;.$page_name.&#8221;&#8216; AND post_type = &#8216;page&#8217; &#8220;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hikari</title>
		<link>http://www.web-templates.nu/2008/09/02/get-id-by-page-name/comment-page-1/#comment-6290</link>
		<dc:creator>Hikari</dc:creator>
		<pubDate>Sun, 04 Apr 2010 02:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-templates.nu/?p=35#comment-6290</guid>
		<description>Wordpress should have an API function for that :/</description>
		<content:encoded><![CDATA[<p>Wordpress should have an API function for that :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bensbury</title>
		<link>http://www.web-templates.nu/2008/09/02/get-id-by-page-name/comment-page-1/#comment-6040</link>
		<dc:creator>Bensbury</dc:creator>
		<pubDate>Tue, 23 Feb 2010 01:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-templates.nu/?p=35#comment-6040</guid>
		<description>Hi, I found this example here in the comments:
(http://www.arkinex.com/wordpress/79/current-wordpress-page-name/)



It seems to do the job for getting page names.
Can&#039;t believe WP doesn&#039;t have this in the core.
Especially when some WP peeps start saying how it has caught up Drupal.

Hope that saves some other people the pain for having to id pages.</description>
		<content:encoded><![CDATA[<p>Hi, I found this example here in the comments:<br />
(<a href="http://www.arkinex.com/wordpress/79/current-wordpress-page-name/" rel="nofollow">http://www.arkinex.com/wordpress/79/current-wordpress-page-name/</a>)</p>
<p>It seems to do the job for getting page names.<br />
Can&#8217;t believe WP doesn&#8217;t have this in the core.<br />
Especially when some WP peeps start saying how it has caught up Drupal.</p>
<p>Hope that saves some other people the pain for having to id pages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.web-templates.nu/2008/09/02/get-id-by-page-name/comment-page-1/#comment-6036</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Mon, 22 Feb 2010 10:51:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-templates.nu/?p=35#comment-6036</guid>
		<description>I was looking for a good 2 hours for a way to do this. Thanks so much!</description>
		<content:encoded><![CDATA[<p>I was looking for a good 2 hours for a way to do this. Thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars</title>
		<link>http://www.web-templates.nu/2008/09/02/get-id-by-page-name/comment-page-1/#comment-5968</link>
		<dc:creator>Lars</dc:creator>
		<pubDate>Wed, 10 Feb 2010 22:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-templates.nu/?p=35#comment-5968</guid>
		<description>Tnx, I&#039;ve been using your hack to get this functionality. I notice that the SQL works better for me if I use &quot;... WHERE post_title=&#039;&quot;.$page_name.&quot;&#039;&quot;);</description>
		<content:encoded><![CDATA[<p>Tnx, I&#8217;ve been using your hack to get this functionality. I notice that the SQL works better for me if I use &#8220;&#8230; WHERE post_title=&#8217;&#8221;.$page_name.&#8221;&#8216;&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.web-templates.nu/2008/09/02/get-id-by-page-name/comment-page-1/#comment-5704</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Fri, 08 Jan 2010 16:33:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-templates.nu/?p=35#comment-5704</guid>
		<description>Nice!  Exactly what I needed; seems like this should be in the core.</description>
		<content:encoded><![CDATA[<p>Nice!  Exactly what I needed; seems like this should be in the core.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.web-templates.nu/2008/09/02/get-id-by-page-name/comment-page-1/#comment-5424</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 11 Dec 2009 09:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-templates.nu/?p=35#comment-5424</guid>
		<description>I&#039;ve been messing round with this for ages. This code works fine if your title contains straight alphanumeric characters. But if your title contains an apostrophe, or an &quot;&amp;&quot; symbol, this code will not work unless using the page slug instead. 

Anyone know of a workaround for this?

Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been messing round with this for ages. This code works fine if your title contains straight alphanumeric characters. But if your title contains an apostrophe, or an &#8220;&amp;&#8221; symbol, this code will not work unless using the page slug instead. </p>
<p>Anyone know of a workaround for this?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paragraphe.org &#124; Ignacio Gondra &#124; Design &#124; For little and middle-sized enterprises , Web Design, Web Development, Information Architecture, Project Consultancy</title>
		<link>http://www.web-templates.nu/2008/09/02/get-id-by-page-name/comment-page-1/#comment-5105</link>
		<dc:creator>Paragraphe.org &#124; Ignacio Gondra &#124; Design &#124; For little and middle-sized enterprises , Web Design, Web Development, Information Architecture, Project Consultancy</dc:creator>
		<pubDate>Mon, 09 Nov 2009 14:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-templates.nu/?p=35#comment-5105</guid>
		<description>[...] I took this nice code from Web Templates.nu. [...]</description>
		<content:encoded><![CDATA[<p>[...] I took this nice code from Web Templates.nu. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesper</title>
		<link>http://www.web-templates.nu/2008/09/02/get-id-by-page-name/comment-page-1/#comment-3121</link>
		<dc:creator>Jesper</dc:creator>
		<pubDate>Sat, 20 Jun 2009 17:34:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-templates.nu/?p=35#comment-3121</guid>
		<description>This is a really nice function, but is it possible to list only the pages you want to include, only 3 of 10 pages of a Wordpress powered site?

Also, is it possible to include title_li= and if so, how?

I would really appreciate this ;)</description>
		<content:encoded><![CDATA[<p>This is a really nice function, but is it possible to list only the pages you want to include, only 3 of 10 pages of a Wordpress powered site?</p>
<p>Also, is it possible to include title_li= and if so, how?</p>
<p>I would really appreciate this <img src='http://www.web-templates.nu/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
