<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>My Site My Way Support &#124; Topic: Current User Posts</title>
		<link>http://mysitemyway.com/support/topic/current-user-posts</link>
		<description>My Site My Way Support | Topic: Current User Posts</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 21:24:39 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://mysitemyway.com/support/search.php</link>
		</textInput>
		<atom:link href="http://mysitemyway.com/support/rss/topic/current-user-posts" rel="self" type="application/rss+xml" />

		<item>
			<title>wesleysoccer on "Current User Posts"</title>
			<link>http://mysitemyway.com/support/topic/current-user-posts#post-61538</link>
			<pubDate>Thu, 05 Apr 2012 04:42:23 +0000</pubDate>
			<dc:creator>wesleysoccer</dc:creator>
			<guid isPermaLink="false">61538@http://mysitemyway.com/support/</guid>
			<description>&#60;p&#62;sent pm
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rochester on "Current User Posts"</title>
			<link>http://mysitemyway.com/support/topic/current-user-posts#post-61530</link>
			<pubDate>Thu, 05 Apr 2012 04:05:38 +0000</pubDate>
			<dc:creator>Rochester</dc:creator>
			<guid isPermaLink="false">61530@http://mysitemyway.com/support/</guid>
			<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;Could you send me login details via PM? I tried here and it worked, but I'm not sure what could be the issue in there!&#60;/p&#62;
&#60;p&#62;[]'s
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wesleysoccer on "Current User Posts"</title>
			<link>http://mysitemyway.com/support/topic/current-user-posts#post-61395</link>
			<pubDate>Wed, 04 Apr 2012 13:25:07 +0000</pubDate>
			<dc:creator>wesleysoccer</dc:creator>
			<guid isPermaLink="false">61395@http://mysitemyway.com/support/</guid>
			<description>&#60;p&#62;Thank you so much...this is so close...&#60;/p&#62;
&#60;p&#62;For some reason it's only working for me (admin) and I can see only the post I created on the page, which is great but for other admin or subscribers who have written posts, they are not even getting access to the page? But works for me...any thoughts?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rochester on "Current User Posts"</title>
			<link>http://mysitemyway.com/support/topic/current-user-posts#post-61354</link>
			<pubDate>Wed, 04 Apr 2012 05:04:50 +0000</pubDate>
			<dc:creator>Rochester</dc:creator>
			<guid isPermaLink="false">61354@http://mysitemyway.com/support/</guid>
			<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;First use the shortcode creator to set all other items of your posts besides this author rule. I'll use this one as example:&#60;br /&#62;
&#60;code&#62;[blog_list thumb=&#38;quot;medium&#38;quot; showposts=&#38;quot;10&#38;quot; post_content=&#38;quot;excerpt&#38;quot; pagination=&#38;quot;true&#38;quot;]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;After saving the page your url bar will be something like this:&#60;br /&#62;
&#60;code&#62;(YOURSITE)/wp-admin/post.php?post=2&#38;amp;action=edit&#38;amp;message=1&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;That means that your PAGE ID is &#60;code&#62;2&#60;/code&#62;. This is really important for the next step.&#60;/p&#62;
&#60;p&#62;You'll open your functions.php and by the end of the file (before &#60;code&#62;?&#38;gt;&#60;/code&#62;) you'll add this content:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;posts_where&#38;#39;, &#38;#39;current_user_posts&#38;#39; );

function current_user_posts( $where ) {
	$current_user = wp_get_current_user();

	if( is_page(2) &#38;amp;&#38;amp; $current_user-&#38;gt;ID) {
		$where .= &#38;quot;AND post_author = &#38;#39;&#38;quot;.$current_user-&#38;gt;ID.&#38;quot;&#38;#39;&#38;quot;;
	}

	return $where;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then you'll replace the &#60;code&#62;is_page(2)&#60;/code&#62; with the ID you've got.&#60;/p&#62;
&#60;p&#62;Here it worked fine, hope it works for you.&#60;/p&#62;
&#60;p&#62;[]'s
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wesleysoccer on "Current User Posts"</title>
			<link>http://mysitemyway.com/support/topic/current-user-posts#post-61224</link>
			<pubDate>Tue, 03 Apr 2012 13:23:20 +0000</pubDate>
			<dc:creator>wesleysoccer</dc:creator>
			<guid isPermaLink="false">61224@http://mysitemyway.com/support/</guid>
			<description>&#60;p&#62;That is correct....but it needs to show in the page.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rochester on "Current User Posts"</title>
			<link>http://mysitemyway.com/support/topic/current-user-posts#post-61178</link>
			<pubDate>Tue, 03 Apr 2012 04:41:11 +0000</pubDate>
			<dc:creator>Rochester</dc:creator>
			<guid isPermaLink="false">61178@http://mysitemyway.com/support/</guid>
			<description>&#60;p&#62;Hi wesleysoccer,&#60;/p&#62;
&#60;p&#62;Wow, that's a really cool feature :)&#60;/p&#62;
&#60;p&#62;I'm pretty sure you can't do it with the shortcode, but I'm sure this is possible with raw coding.&#60;/p&#62;
&#60;p&#62;Let's see if I understood it right. If the user &#34;A&#34; is logged in and visits a page, you want to show in that page only the posts written by user &#34;A&#34;, right?&#60;/p&#62;
&#60;p&#62;[]'s
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wesleysoccer on "Current User Posts"</title>
			<link>http://mysitemyway.com/support/topic/current-user-posts#post-61173</link>
			<pubDate>Tue, 03 Apr 2012 03:09:43 +0000</pubDate>
			<dc:creator>wesleysoccer</dc:creator>
			<guid isPermaLink="false">61173@http://mysitemyway.com/support/</guid>
			<description>&#60;p&#62;Is there a way for me to add the blog shortcode to a my page and just show the current logged in users posts? Any help would be amazing. Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
