<?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>WpFunc &#187; moderate</title>
	<atom:link href="http://wpfunc.com/tag/moderate/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Sun, 06 May 2012 02:21:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Display who modify your post(s)!</title>
		<link>http://wpfunc.com/wordpress/display-who-modify-your-posts.html</link>
		<comments>http://wpfunc.com/wordpress/display-who-modify-your-posts.html#comments</comments>
		<pubDate>Thu, 10 Sep 2009 19:57:04 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[funciton]]></category>
		<category><![CDATA[moderate]]></category>
		<category><![CDATA[modify]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[writer]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=161</guid>
		<description><![CDATA[You can display who modarate/modify your post. This mean show the latest author who modified your post. We can use 2.8&#8242;s new template tag &#8216;the_modified_author()&#8216;. If you use Wp 2.8 you can use a simple code but, if you use Wp 2.7 you have to use this function below. Lets Begin :) Here is the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify; ">You can display who modarate/modify your post. This mean show the latest author who modified your post. We can use 2.8&#8242;s new template tag <strong><span style="color: #ff0000;">&#8216;the_modified_author()</span></strong>&#8216;. If you use Wp 2.8 you can use a simple code but, if you use Wp 2.7 you have to use this function below. Lets Begin :)<span id="more-161"></span></p>
<h1>Here is the code;</h1>
<p style="text-align: justify; "><span class="alert">With this function we will change our templates <strong>funcitons.php</strong>. If you don&#8217;t know about WordPress or PHp coding, please don&#8217;t touch this file. If you any questions about that, contact me :)</span></p>
<p style="text-align: justify; ">Firstly you shuold make a backup of <em><strong><span style="color: #ff0000;">functions.php</span></strong></em><em><strong> (path: wp-contect/themes/your-theme/funcitons.php). </strong><span style="font-style: normal;">After copy this code to end of file:</span></em></p>
<p style="text-align: justify; "><em><span style="font-style: normal;"> </span></em></p>
<p><em> </em></p>
<pre class="brush: plain; title: ; notranslate">if (!function_exists('get_the_modified_author')) {
  function get_the_modified_author() {
    global $post;
    if ( $last_id = get_post_meta($post-&gt;ID, '_edit_last', true) ) {
      $last_user = get_userdata($last_id);
      return apply_filters('the_modified_author', $last_user-&gt;display_name);
    }
  }
}

if (!function_exists('the_modified_author')) {
  function the_modified_author() {
    echo get_the_modified_author();
  }
}
</pre>
<p>After that you can save and upload this to your web server. Than you can use this code anywhere <strong><em>(single.php, index.php etc.</em></strong>):</p>
<p><span style="font-style: normal; "> </span></p>
<pre class="brush: plain; title: ; notranslate">&lt;?php the_modified_author(); ?&gt;</pre>
<p>That&#8217;s All! Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/display-who-modify-your-posts.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

