<?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>body_filter &#8211; alperdereli.com</title>
	<atom:link href="https://www.alperdereli.com/etiket/body_filter/feed" rel="self" type="application/rss+xml" />
	<link>https://www.alperdereli.com</link>
	<description></description>
	<lastBuildDate>Fri, 09 Dec 2016 14:23:44 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.alperdereli.com/wp-content/uploads/2013/11/ad_logo-150x150.png</url>
	<title>body_filter &#8211; alperdereli.com</title>
	<link>https://www.alperdereli.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Yazı Kısa İsmini Body Etiketine Class Olarak Eklemek</title>
		<link>https://www.alperdereli.com/yazi-kisa-ismini-body-etiketine-class-olarak-eklemek</link>
					<comments>https://www.alperdereli.com/yazi-kisa-ismini-body-etiketine-class-olarak-eklemek#respond</comments>
		
		<dc:creator><![CDATA[Alper Dereli]]></dc:creator>
		<pubDate>Wed, 20 Jan 2016 11:03:47 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[body_filter]]></category>
		<category><![CDATA[css class]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://www.wpuzman.com/?p=233</guid>

					<description><![CDATA[Bir yazının kısa ismini body etiketine CSS class olarak eklemek için aşağıdaki kodu kullandığınız temanın functions.php dosyasına yazın.]]></description>
										<content:encoded><![CDATA[<p>Bir yazının kısa ismini body etiketine CSS class olarak eklemek için aşağıdaki kodu kullandığınız temanın functions.php dosyasına yazın.<br />
<span id="more-252"></span></p>
<pre class="lang:php decode:true " >//Post Slug Body Class
function add_post_slug_body_class( $classes ) {
    global $post;
    if ( isset( $post ) ) {
        $classes[] = $post-&gt;post_name;
    }
    return $classes;
}
add_filter( 'body_class', 'add_post_slug_body_class' );</pre>
<p>Kodu kullandığınızda body etiketinde yazının kısa ismini aşağıdaki gibi css class olarak görebileceksiniz.<br />
<img fetchpriority="high" decoding="async" src="http://www.alperdereli.com/wp-content/uploads/2016/01/slug-to-body-class.jpg" alt="slug-to-body-class" width="692" height="170" class="alignnone size-full wp-image-385" /></p>
<p>Kaynak: <a href="http://coffeecupweb.com/how-to-add-post-slug-to-body-class-in-wordpress/" target="_blank" rel="_nofollow noopener">http://coffeecupweb.com/how-to-add-post-slug-to-body-class-in-wordpress/</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.alperdereli.com/yazi-kisa-ismini-body-etiketine-class-olarak-eklemek/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
