<?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>WordPressを複数ユーザーで利用している際に、「投稿」や「メディア」で自分が投稿したもの以外を表示させないようにするコード へのコメント</title>
	<atom:link href="http://inspire-tech.jp/2012/11/view-of-the-posts-and-media-only-myself/feed/" rel="self" type="application/rss+xml" />
	<link>http://inspire-tech.jp/2012/11/view-of-the-posts-and-media-only-myself/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=view-of-the-posts-and-media-only-myself</link>
	<description>株式会社インスパイアデザインのプログラマーである家富正幸が、デザインやシステム開発、ソーシャルメディアや最近のトレンドなど、Webに関する様々な情報を発信しているブログです。</description>
	<lastBuildDate>Tue, 25 Apr 2023 01:14:28 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.41</generator>
	<item>
		<title>chcplay app より</title>
		<link>http://inspire-tech.jp/2012/11/view-of-the-posts-and-media-only-myself/#comment-29342</link>
		<dc:creator><![CDATA[chcplay app]]></dc:creator>
		<pubDate>Mon, 17 Apr 2023 17:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://inspire-tech.jp/?p=1458#comment-29342</guid>
		<description><![CDATA[Thank you very much for the information provided]]></description>
		<content:encoded><![CDATA[<p>Thank you very much for the information provided</p>
]]></content:encoded>
	</item>
	<item>
		<title>Nathancot より</title>
		<link>http://inspire-tech.jp/2012/11/view-of-the-posts-and-media-only-myself/#comment-28360</link>
		<dc:creator><![CDATA[Nathancot]]></dc:creator>
		<pubDate>Tue, 11 Apr 2023 21:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://inspire-tech.jp/?p=1458#comment-28360</guid>
		<description><![CDATA[You have made your stand extremely clearly.. 
how i grew as a writer essay &lt;a href=&quot;https://gseomail.com/&quot; rel=&quot;nofollow&quot;&gt;who can write my essay&lt;/a&gt; help me write a business plan for free]]></description>
		<content:encoded><![CDATA[<p>You have made your stand extremely clearly..<br />
how i grew as a writer essay <a href="https://gseomail.com/" rel="nofollow">who can write my essay</a> help me write a business plan for free</p>
]]></content:encoded>
	</item>
	<item>
		<title>Scottrek より</title>
		<link>http://inspire-tech.jp/2012/11/view-of-the-posts-and-media-only-myself/#comment-28099</link>
		<dc:creator><![CDATA[Scottrek]]></dc:creator>
		<pubDate>Sun, 09 Apr 2023 10:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://inspire-tech.jp/?p=1458#comment-28099</guid>
		<description><![CDATA[Thanks a lot! Great information! 
soaring eagle casino online &lt;a href=&quot;https://bestonlinecasinoreal.us/&quot; / rel=&quot;nofollow&quot;&gt;caesars pa online casino app&lt;/a&gt; best bonus online casino]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot! Great information!<br />
soaring eagle casino online <a href="https://bestonlinecasinoreal.us/" / rel="nofollow">caesars pa online casino app</a> best bonus online casino</p>
]]></content:encoded>
	</item>
	<item>
		<title>Ernestartew より</title>
		<link>http://inspire-tech.jp/2012/11/view-of-the-posts-and-media-only-myself/#comment-28077</link>
		<dc:creator><![CDATA[Ernestartew]]></dc:creator>
		<pubDate>Sun, 09 Apr 2023 08:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://inspire-tech.jp/?p=1458#comment-28077</guid>
		<description><![CDATA[Beneficial posts. Regards. 
cheap essays to buy &lt;a href=&quot;https://seoqmail.com/&quot; / rel=&quot;nofollow&quot;&gt;pay for essay reviews&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p>Beneficial posts. Regards.<br />
cheap essays to buy <a href="https://seoqmail.com/" / rel="nofollow">pay for essay reviews</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Hectorbaw より</title>
		<link>http://inspire-tech.jp/2012/11/view-of-the-posts-and-media-only-myself/#comment-28071</link>
		<dc:creator><![CDATA[Hectorbaw]]></dc:creator>
		<pubDate>Sun, 09 Apr 2023 07:53:44 +0000</pubDate>
		<guid isPermaLink="false">http://inspire-tech.jp/?p=1458#comment-28071</guid>
		<description><![CDATA[Reliable data. Kudos! 
write my summary for me &lt;a href=&quot;https://eseomail.com/&quot; rel=&quot;nofollow&quot;&gt;spanish essay writer&lt;/a&gt; writing my essay]]></description>
		<content:encoded><![CDATA[<p>Reliable data. Kudos!<br />
write my summary for me <a href="https://eseomail.com/" rel="nofollow">spanish essay writer</a> writing my essay</p>
]]></content:encoded>
	</item>
	<item>
		<title>Merrugh より</title>
		<link>http://inspire-tech.jp/2012/11/view-of-the-posts-and-media-only-myself/#comment-24659</link>
		<dc:creator><![CDATA[Merrugh]]></dc:creator>
		<pubDate>Sun, 12 Mar 2023 07:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://inspire-tech.jp/?p=1458#comment-24659</guid>
		<description><![CDATA[&lt;a href=&quot;https://buycialis.beauty&quot; rel=&quot;nofollow&quot;&gt;buy cialis online europe&lt;/a&gt; Tokyo hopes, however, that if Abe stays away on the day it could score points with China and help pave the way for a summit that Japan has been signaling it wants]]></description>
		<content:encoded><![CDATA[<p><a href="https://buycialis.beauty" rel="nofollow">buy cialis online europe</a> Tokyo hopes, however, that if Abe stays away on the day it could score points with China and help pave the way for a summit that Japan has been signaling it wants</p>
]]></content:encoded>
	</item>
	<item>
		<title>kiyomizu hiroyuki より</title>
		<link>http://inspire-tech.jp/2012/11/view-of-the-posts-and-media-only-myself/#comment-967</link>
		<dc:creator><![CDATA[kiyomizu hiroyuki]]></dc:creator>
		<pubDate>Mon, 22 Apr 2013 11:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://inspire-tech.jp/?p=1458#comment-967</guid>
		<description><![CDATA[自分はこんな感じで作ってみました。

/**
 * 管理者以外は、自分のコンテンツのみ表示
 */
function my_pre_get_posts_filter(&amp;$wp_query)
{
	global $pagenow;
	$user = wp_get_current_user();
	if ($user-&gt;roles[0] != &quot;administrator&quot;) {
		$wp_query-&gt;set(&#039;author&#039;, $user-&gt;ID);
	}
}
add_action(&#039;pre_get_posts&#039;, &#039;my_pre_get_posts_filter&#039;, 10, 1);]]></description>
		<content:encoded><![CDATA[<p>自分はこんな感じで作ってみました。</p>
<p>/**<br />
 * 管理者以外は、自分のコンテンツのみ表示<br />
 */<br />
function my_pre_get_posts_filter(&amp;$wp_query)<br />
{<br />
	global $pagenow;<br />
	$user = wp_get_current_user();<br />
	if ($user-&gt;roles[0] != &#8220;administrator&#8221;) {<br />
		$wp_query-&gt;set(&#8216;author&#8217;, $user-&gt;ID);<br />
	}<br />
}<br />
add_action(&#8216;pre_get_posts&#8217;, &#8216;my_pre_get_posts_filter&#8217;, 10, 1);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
