<?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: Extending the Wordpress body_class function with the top level parent ID</title>
	<atom:link href="http://blog.mrhenry.be/2009/10/extending-the-wordpress-body_class-function-with-the-top-level-parent-id/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mrhenry.be/2009/10/extending-the-wordpress-body_class-function-with-the-top-level-parent-id/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 26 Jul 2010 01:19:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: KCA</title>
		<link>http://blog.mrhenry.be/2009/10/extending-the-wordpress-body_class-function-with-the-top-level-parent-id/comment-page-1/#comment-1019</link>
		<dc:creator>KCA</dc:creator>
		<pubDate>Thu, 18 Feb 2010 15:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mrhenry.be/?p=1115#comment-1019</guid>
		<description>It is great ^o^ but how it is possible to convert this code to the category in order to output the parent category?</description>
		<content:encoded><![CDATA[<p>It is great ^o^ but how it is possible to convert this code to the category in order to output the parent category?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrX</title>
		<link>http://blog.mrhenry.be/2009/10/extending-the-wordpress-body_class-function-with-the-top-level-parent-id/comment-page-1/#comment-986</link>
		<dc:creator>MrX</dc:creator>
		<pubDate>Mon, 11 Jan 2010 16:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mrhenry.be/?p=1115#comment-986</guid>
		<description>Well, you just made my day! =)

That worked great. Thank you so much!</description>
		<content:encoded><![CDATA[<p>Well, you just made my day! =)</p>
<p>That worked great. Thank you so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.mrhenry.be/2009/10/extending-the-wordpress-body_class-function-with-the-top-level-parent-id/comment-page-1/#comment-984</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 06 Jan 2010 10:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mrhenry.be/?p=1115#comment-984</guid>
		<description>Hi MrX, 

try using this class &quot;&lt;em&gt;top-level-parent-pageid-2&lt;/em&gt;&quot; instead of &quot;&lt;em&gt;.page-id-2&lt;/em&gt;&quot;. 

If that doesn&#039;t work, send a link of your blog so we can explore this to the bone.</description>
		<content:encoded><![CDATA[<p>Hi MrX, </p>
<p>try using this class &#8220;<em>top-level-parent-pageid-2</em>&#8221; instead of &#8220;<em>.page-id-2</em>&#8220;. </p>
<p>If that doesn&#8217;t work, send a link of your blog so we can explore this to the bone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrX</title>
		<link>http://blog.mrhenry.be/2009/10/extending-the-wordpress-body_class-function-with-the-top-level-parent-id/comment-page-1/#comment-983</link>
		<dc:creator>MrX</dc:creator>
		<pubDate>Tue, 05 Jan 2010 02:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mrhenry.be/?p=1115#comment-983</guid>
		<description>It took me awhile to find something like this, so I was quite glad to find this post. However, I&#039;m not having success. I have gone to the header.php and made sure to change the  to &lt;body &gt; 

I then went to style.css and added the following style for my about page:
.page-id-2 {
	background: #FF3366;
}

I then added your code in my function.php

Yet, my mission page, a subpage of About doesn&#039;t carry pull the same background color. I&#039;m using the &quot;default&quot; theme for testing purpose and running WP 2.9.1

Any advice?</description>
		<content:encoded><![CDATA[<p>It took me awhile to find something like this, so I was quite glad to find this post. However, I&#8217;m not having success. I have gone to the header.php and made sure to change the  to &lt;body &gt; </p>
<p>I then went to style.css and added the following style for my about page:<br />
.page-id-2 {<br />
	background: #FF3366;<br />
}</p>
<p>I then added your code in my function.php</p>
<p>Yet, my mission page, a subpage of About doesn&#8217;t carry pull the same background color. I&#8217;m using the &#8220;default&#8221; theme for testing purpose and running WP 2.9.1</p>
<p>Any advice?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.mrhenry.be/2009/10/extending-the-wordpress-body_class-function-with-the-top-level-parent-id/comment-page-1/#comment-982</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 04 Jan 2010 08:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mrhenry.be/?p=1115#comment-982</guid>
		<description>Hi Sergi,

what you are trying to do is not possible with the normal function. Try to look into your source code and see what body classes are generated for that specific page. Normally you should find something like &quot;postid-2893&quot;, that&#039;s the one you need.

If you still having trouble, shout and we&#039;ll dive in deeper :)</description>
		<content:encoded><![CDATA[<p>Hi Sergi,</p>
<p>what you are trying to do is not possible with the normal function. Try to look into your source code and see what body classes are generated for that specific page. Normally you should find something like &#8220;postid-2893&#8243;, that&#8217;s the one you need.</p>
<p>If you still having trouble, shout and we&#8217;ll dive in deeper <img src='http://blog.mrhenry.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sergi</title>
		<link>http://blog.mrhenry.be/2009/10/extending-the-wordpress-body_class-function-with-the-top-level-parent-id/comment-page-1/#comment-978</link>
		<dc:creator>sergi</dc:creator>
		<pubDate>Mon, 28 Dec 2009 03:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mrhenry.be/?p=1115#comment-978</guid>
		<description>Hi, i&#039;m having trouble understanding how to leverage the body_class function using css.

My understanding is that in 2.8 +, the body class is dynamically generated.  So if my page is titled About, and my blog page is titled News, the classes .about and .news will be generated.

if that is the case, i would assume the following css would work - but it doesn&#039;t:

body.about {background: orange;}
body.news {background: red;}

what am i doing wrong?  why doesn&#039;t this css work (note: i&#039;m using a clean kubrick theme install)

thank you for your help regarding this matter.</description>
		<content:encoded><![CDATA[<p>Hi, i&#8217;m having trouble understanding how to leverage the body_class function using css.</p>
<p>My understanding is that in 2.8 +, the body class is dynamically generated.  So if my page is titled About, and my blog page is titled News, the classes .about and .news will be generated.</p>
<p>if that is the case, i would assume the following css would work &#8211; but it doesn&#8217;t:</p>
<p>body.about {background: orange;}<br />
body.news {background: red;}</p>
<p>what am i doing wrong?  why doesn&#8217;t this css work (note: i&#8217;m using a clean kubrick theme install)</p>
<p>thank you for your help regarding this matter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: [WordPress] body classを付ける - ハウスウエディング [665-667]</title>
		<link>http://blog.mrhenry.be/2009/10/extending-the-wordpress-body_class-function-with-the-top-level-parent-id/comment-page-1/#comment-681</link>
		<dc:creator>[WordPress] body classを付ける - ハウスウエディング [665-667]</dc:creator>
		<pubDate>Mon, 16 Nov 2009 15:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mrhenry.be/?p=1115#comment-681</guid>
		<description>[...] 参考：英語サイト Extending the Wordpress body_class function with the top level parent ID [...]</description>
		<content:encoded><![CDATA[<p>[...] 参考：英語サイト Extending the Wordpress body_class function with the top level parent ID [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress hack: Extend the body_class function</title>
		<link>http://blog.mrhenry.be/2009/10/extending-the-wordpress-body_class-function-with-the-top-level-parent-id/comment-page-1/#comment-579</link>
		<dc:creator>WordPress hack: Extend the body_class function</dc:creator>
		<pubDate>Mon, 02 Nov 2009 07:09:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mrhenry.be/?p=1115#comment-579</guid>
		<description>[...] to Mr Henry for this very cool recipe!   If you enjoyed this article, please consider sharing it!   [...]</description>
		<content:encoded><![CDATA[<p>[...] to Mr Henry for this very cool recipe!   If you enjoyed this article, please consider sharing it!   [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
