<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Mamaduka</title>
	<atom:link href="http://mamaduka.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mamaduka.wordpress.com</link>
	<description>Me about WordPress</description>
	<lastBuildDate>Sun, 22 Jan 2012 14:43:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mamaduka.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Mamaduka</title>
		<link>http://mamaduka.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mamaduka.wordpress.com/osd.xml" title="Mamaduka" />
	<atom:link rel='hub' href='http://mamaduka.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Contribution to bbPress</title>
		<link>http://mamaduka.wordpress.com/2012/01/22/contribution-to-bbpress/</link>
		<comments>http://mamaduka.wordpress.com/2012/01/22/contribution-to-bbpress/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 14:38:27 +0000</pubDate>
		<dc:creator>George</dc:creator>
		
		<guid isPermaLink="false">http://mamaduka.wordpress.com/?p=196</guid>
		<description><![CDATA[Today my third patch was applied to bbPress. Patch adds forum/topic/reply attributes help tab to contextual help. It feels good to be a part of open source project.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mamaduka.wordpress.com&amp;blog=9384722&amp;post=196&amp;subd=mamaduka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today my third patch was applied to<a href="http://bbpress.org/"> bbPress</a>. <a href="http://bbpress.trac.wordpress.org/changeset/3688">Patch</a> adds forum/topic/reply attributes help tab to contextual help.</p>
<p>It feels good to be a part of open source project.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mamaduka.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mamaduka.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mamaduka.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mamaduka.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mamaduka.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mamaduka.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mamaduka.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mamaduka.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mamaduka.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mamaduka.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mamaduka.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mamaduka.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mamaduka.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mamaduka.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mamaduka.wordpress.com&amp;blog=9384722&amp;post=196&amp;subd=mamaduka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mamaduka.wordpress.com/2012/01/22/contribution-to-bbpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddda3dc3a8502b3e1889905a9d500f3f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">გიორგი მამადაშვილი</media:title>
		</media:content>
	</item>
		<item>
		<title>Note for Future</title>
		<link>http://mamaduka.wordpress.com/2012/01/15/note-for-future/</link>
		<comments>http://mamaduka.wordpress.com/2012/01/15/note-for-future/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 20:35:47 +0000</pubDate>
		<dc:creator>George</dc:creator>
		
		<guid isPermaLink="false">http://mamaduka.wordpress.com/?p=194</guid>
		<description><![CDATA[Create &#8220;Delete Post Revisions&#8221; plugin, good and simple one!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mamaduka.wordpress.com&amp;blog=9384722&amp;post=194&amp;subd=mamaduka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Create &#8220;Delete Post Revisions&#8221; plugin, good and simple one!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mamaduka.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mamaduka.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mamaduka.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mamaduka.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mamaduka.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mamaduka.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mamaduka.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mamaduka.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mamaduka.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mamaduka.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mamaduka.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mamaduka.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mamaduka.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mamaduka.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mamaduka.wordpress.com&amp;blog=9384722&amp;post=194&amp;subd=mamaduka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mamaduka.wordpress.com/2012/01/15/note-for-future/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddda3dc3a8502b3e1889905a9d500f3f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">გიორგი მამადაშვილი</media:title>
		</media:content>
	</item>
		<item>
		<title>Add parent category class to post_class()</title>
		<link>http://mamaduka.wordpress.com/2011/10/10/add-parent-category-class-to-post_class/</link>
		<comments>http://mamaduka.wordpress.com/2011/10/10/add-parent-category-class-to-post_class/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 11:06:47 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://mamaduka.wordpress.com/?p=168</guid>
		<description><![CDATA[Right way to add class to post container HTML tag is post_class() function, it&#8217;s also required by Theme Review Guidelines. Many people ask on WordPress &#8211; Stack Exchange how to echo class depending on parent category, best way to do this &#8230; <a href="http://mamaduka.wordpress.com/2011/10/10/add-parent-category-class-to-post_class/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mamaduka.wordpress.com&amp;blog=9384722&amp;post=168&amp;subd=mamaduka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Right way to add class to post container HTML tag is <code><a href="http://codex.wordpress.org/Function_Reference/post_class">post_class()</a></code> function, it&#8217;s also required by Theme Review <a href="http://codex.wordpress.org/Theme_Review#Required_Hooks_and_Navigation">Guidelines</a>.</p>
<p>Many people ask on WordPress &#8211; Stack Exchange how to echo class depending on parent category, best way to do this is to use <code>post_class</code> filter, so I wrote small chunk of code to this.</p>
<p>Following code is based on Chip Bennett&#8217;s clever <a href="http://wordpress.stackexchange.com/questions/23259/get-parent-category-class-in-post-class/23260#23260">solution</a>. I changed big part of it, but logic is the same.</p>
<pre>add_filter( 'post_class', 'mamaduka_add_parent_category_class' );
/**
 * Add parent category class to post_class() function
 *
 * @link http://wordpress.stackexchange.com/q/23259#23260
 */
function mamaduka_add_parent_category_class( $classes ) {
	global $post;

	foreach ( (array) get_the_category( $post-&gt;ID ) as $cat ) {
		if ( ! empty( $cat-&gt;parent ) ) {
			$parent_cat = &amp;get_category( $cat-&gt;parent );
			$classes[] = 'category-parent-' . sanitize_html_class( $parent_cat-&gt;slug, $parent_cat-&gt;term_id );
		} else {
			$classes[] = 'category-parent-' . sanitize_html_class( $cat-&gt;slug, $cat-&gt;term_id );
		}
	}
	return $classes;
}</pre>
<p>What the code above does is simple, it gets array of category objects assigned to the post, then if category has parent it adds class &#8216;category-parent-{parent-cat-name}&#8217;, otherwise category is top-level so we are using it.</p>
<p><strong>Problem: </strong>If user adds both parent and its child categories, we&#8217;ll get duplicated class output of parent category.</p>
<p>This is small problem I&#8217;m working now, any suggestions are welcome.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mamaduka.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mamaduka.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mamaduka.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mamaduka.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mamaduka.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mamaduka.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mamaduka.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mamaduka.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mamaduka.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mamaduka.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mamaduka.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mamaduka.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mamaduka.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mamaduka.wordpress.com/168/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mamaduka.wordpress.com&amp;blog=9384722&amp;post=168&amp;subd=mamaduka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mamaduka.wordpress.com/2011/10/10/add-parent-category-class-to-post_class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddda3dc3a8502b3e1889905a9d500f3f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">გიორგი მამადაშვილი</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello World</title>
		<link>http://mamaduka.wordpress.com/2010/11/12/hello-world/</link>
		<comments>http://mamaduka.wordpress.com/2010/11/12/hello-world/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 10:54:36 +0000</pubDate>
		<dc:creator>George</dc:creator>
		
		<guid isPermaLink="false">http://mamaduka.wordpress.com/?p=72</guid>
		<description><![CDATA[I&#8217;m George and this is my &#8220;Hello Word&#8221; post. I&#8217;ve no idea about my future posts, but I think my main subject will be WordPress.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mamaduka.wordpress.com&amp;blog=9384722&amp;post=72&amp;subd=mamaduka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m George and this is my &#8220;Hello Word&#8221; post.</p>
<p>I&#8217;ve no idea about my future posts, but I think my main subject will be <a href="http://wordpress.org/">WordPress</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mamaduka.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mamaduka.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mamaduka.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mamaduka.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mamaduka.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mamaduka.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mamaduka.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mamaduka.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mamaduka.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mamaduka.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mamaduka.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mamaduka.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mamaduka.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mamaduka.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mamaduka.wordpress.com&amp;blog=9384722&amp;post=72&amp;subd=mamaduka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mamaduka.wordpress.com/2010/11/12/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddda3dc3a8502b3e1889905a9d500f3f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">გიორგი მამადაშვილი</media:title>
		</media:content>
	</item>
	</channel>
</rss>
