<?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>intelligent e-Services &#187; #WordPress Plugins</title>
	<atom:link href="https://ieservices.de/en/tag/wordpress-plugins/feed/" rel="self" type="application/rss+xml" />
	<link>https://ieservices.de/en/</link>
	<description>the new challenge for open minded people</description>
	<lastBuildDate>Fri, 10 Apr 2026 15:02:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Find the page or post for a given permalink</title>
		<link>https://ieservices.de/en/2010/11/25/find-the-page-or-post-for-a-given-permalink/</link>
		<comments>https://ieservices.de/en/2010/11/25/find-the-page-or-post-for-a-given-permalink/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 10:33:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[#WordPress]]></category>
		<category><![CDATA[#WordPress Plugins]]></category>
		<category><![CDATA[permalink]]></category>

		<guid isPermaLink="false">http://ieservices.de/?p=802</guid>
		<description><![CDATA[<p>Today I was wondering how I can get the page object, including the page_id from WordPress. After some investigation I figured out, that the [...]</p>
<p>The post <a rel="nofollow" href="https://ieservices.de/en/2010/11/25/find-the-page-or-post-for-a-given-permalink/">Find the page or post for a given permalink</a> appeared first on <a rel="nofollow" href="https://ieservices.de/en/">intelligent e-Services</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Today I was wondering how I can get the page object, including the page_id from WordPress.</p>
<p>After some investigation I figured out, that the permalink is written in the page_name in each posts wp_posts table.</p>
<p>Then figured out, that the WordPress function <strong>get_page_by_path($page_path, $output = OBJECT, $post_type = &#8216;page&#8217;)</strong> could solve my problem.</p>
<p>So, then I just called this method with the given permalink as path and it worked.</p>
<p>So for example, have permalink of our website http://www.mywebsite.com/about and we want to have that page object of the about &#8211; page:</p>
<p><code><br />
// define the permalink path<br />
$permalink = 'about';</p>
<p>// get the page object from the permalink<br />
$page = get_page_by_path($permalink);<br />
</code></p>
<p>This was performed on a WordPress 3.0.1.</p>
<p>The post <a rel="nofollow" href="https://ieservices.de/en/2010/11/25/find-the-page-or-post-for-a-given-permalink/">Find the page or post for a given permalink</a> appeared first on <a rel="nofollow" href="https://ieservices.de/en/">intelligent e-Services</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://ieservices.de/en/2010/11/25/find-the-page-or-post-for-a-given-permalink/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
