<?xml version="1.0"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Decaflon Thread: Accessing a different WP install on my blog</title>
<link>http://decaflon.com/notes/</link>
<description>Decaflon Thread: Accessing a different WP install on my blog</description>
<language>en</language>
<pubDate>Fri, 09 Jan 2009 04:12:01 +0000</pubDate>

<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46220</link>
<pubDate>Sun, 10 Jun 2007 01:06:22</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46220</guid>
<description>&lt;p&gt;just sent the friend request :)&lt;/p&gt;
&lt;p&gt;I think it has to do with the fact that I'm on Dreamhost.  My blog seems to be executing the code according to its own database, instead of the highfivehero database..
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46173</link>
<pubDate>Sat, 09 Jun 2007 10:12:01</pubDate>
<dc:creator>dreamweaver</dc:creator>
<guid isPermaLink="false">46173</guid>
<description>&lt;p&gt;Hey, sorry to be gone Jackosh.  Bedtime in my part of the world.  Did you get this going last night?&lt;/p&gt;
&lt;p&gt;If not, send me a friend request, and we can do this by PM or email.  I've tried this with the info you have and it works and I can see the &quot;Hello, World&quot; post, so I'm not sure why it doesn't for you.  Let me know...
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46130</link>
<pubDate>Sat, 09 Jun 2007 00:45:46</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46130</guid>
<description>&lt;p&gt;here are my warnings:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
Warning: require(./wordpress/wp-config.php) [function.require]: failed to open stream: No such file or directory in /home/.server/username/mydomain.net/x-tumble.php on line 5&lt;br /&gt;
Fatal error: require() [function.require]: Failed opening required &amp;#39;./wordpress/wp-config.php&amp;#39; (include_path=&amp;#39;.:/usr/local/php5/lib/php&amp;#39;) in /home/.server/username/mydomain.net/x-tumble.php on line 5&lt;br /&gt;
&lt;/code&gt;
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46128</link>
<pubDate>Sat, 09 Jun 2007 00:43:24</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46128</guid>
<description>&lt;p&gt;@dreamweaver:&lt;/p&gt;
&lt;p&gt;I'm messing around now, I'll post back soon :)&lt;/p&gt;
&lt;p&gt;@JeffJ:&lt;/p&gt;
&lt;p&gt;I could do that, but it is not what I want to do.. feeds don't let you customize everything, as I would like to do.
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46127</link>
<pubDate>Sat, 09 Jun 2007 00:33:00</pubDate>
<dc:creator>JeffJ</dc:creator>
<guid isPermaLink="false">46127</guid>
<description>&lt;p&gt;Maybe I'm missing the point of what you're trying to do here, but couldn't you just use information from the feed of one blog to get those latest posts to display on the other? That would be similar to what 9rules does with grabbing the latest posts from its members' personal blogs.&lt;/p&gt;
&lt;p&gt;It just sounds to me like you're using a slightly convoluted method that's using extra mysql queries that could be avoided. No?
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46124</link>
<pubDate>Sat, 09 Jun 2007 00:29:46</pubDate>
<dc:creator>dreamweaver</dc:creator>
<guid isPermaLink="false">46124</guid>
<description>&lt;p&gt;Well, I was able to do some testing on my own two blogs earlier, and if you just dump the entire wordpress loop into the feedinc.php file, from &lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;?php if (have_posts()) : ?&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;?php endif; ?&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;it works, and then you can customize it down so as not to include things you don't need/want to show up there, like the comments code, and navigation.  It will show however many posts from blog#2 that you've set blog#2 to show in it's options panel.  It worked for me on the two sites I linked to earlier, though I only had it up to test functionality.&lt;/p&gt;
&lt;p&gt;Let us know when you get it working, and what you did!
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46119</link>
<pubDate>Sat, 09 Jun 2007 00:13:21</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46119</guid>
<description>&lt;blockquote&gt;&lt;p&gt;
How about some more info about what you're trying to do?
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I run a blog (linked to from y my.9r page).  I also want to run a tumblelog (at a separate address).  While I will run the tumblelog at a separate address, I would also like to show the most recent posts at my main blog address on its own page (still linking back to the tumblelog).&lt;/p&gt;
&lt;p&gt;I think I have it 90% done thanks to your help so far, I just need to figure out how to run the wordpress code from the tumblelog address without 'confusing' the wordpress code at the main blog address!&lt;/p&gt;
&lt;p&gt;I'm not calling it from within a WP loop.  magpie and wpget are not ideal for me, though I guess at some point I'll realize that beggar can't be choosers!
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46114</link>
<pubDate>Fri, 08 Jun 2007 23:51:00</pubDate>
<dc:creator>dreamweaver</dc:creator>
<guid isPermaLink="false">46114</guid>
<description>&lt;p&gt;How about some more info about what you're trying to do?  I have some thoughts, and a couple of other solutions.&lt;/p&gt;
&lt;p&gt;If you want the entire post from blog#2 to show on blog#1, you can do that by programming an entire wp loop into the feedinc.php file.  No matter whether you want to just have post titles or the entire post, the call to the feedinc.php file cannot be inside the existing wploop on blog#1.  If it is inside the wp loop that's already there, you'll have problems with page navigation on for the posts on blog#1.&lt;/p&gt;
&lt;p&gt;The links in the imported blog#2's posts will link to the other site, of course.&lt;/p&gt;
&lt;p&gt;Other solutions:  Check out &lt;a href=&quot;http://minitutorials.com/rss_xml/rss_display.php&quot;&gt;magpie&lt;/a&gt;.  Converts rss to html, then spits it out to be included wherever.&lt;/p&gt;
&lt;p&gt;Mom said something about &lt;a href=&quot;http://peter.upfold.org.uk/projects/wpget&quot;&gt;WPGet&lt;/a&gt; as well.&lt;/p&gt;
&lt;p&gt;Thoughts?
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46110</link>
<pubDate>Fri, 08 Jun 2007 23:32:09</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46110</guid>
<description>&lt;p&gt;OK it &lt;strong&gt;does&lt;/strong&gt; work, BUT only when I take out &lt;code&gt;require(&amp;#39;./wordpress/wp-config.php&amp;#39;);&lt;/code&gt; and I assume its because it freaks out with two wp-config files loaded..
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46108</link>
<pubDate>Fri, 08 Jun 2007 23:23:24</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46108</guid>
<description>&lt;p&gt;well I'm just about there- &lt;a href=&quot;http://highfivehero.net/x-tumble.php&quot; rel=&quot;nofollow&quot;&gt;http://highfivehero.net/x-tumble.php&lt;/a&gt; works fine, but the include statement is not working.. I'm not giving up yet, though!
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46083</link>
<pubDate>Fri, 08 Jun 2007 22:03:30</pubDate>
<dc:creator>dreamweaver</dc:creator>
<guid isPermaLink="false">46083</guid>
<description>&lt;p&gt;Okay, wait, I use this on &lt;a href=&quot;http://driventoquilt.com/podcasts/&quot;&gt;Driven to Quilt&lt;/a&gt;, and the posts it pulls in are from &lt;a href=&quot;http://www.dreamweavers-quilts.com/quilt-epiphany/&quot;&gt;DreamWeaver's Quilts&lt;/a&gt;.  The feedinc.php file is on DreamWeaver's Quilts, and the line to include the feedinc.php file is on Driven to Quilt.  &lt;/p&gt;
&lt;p&gt;So, blog #1 is where you want the posts/titles to show up, and that's where you put&lt;br /&gt;
&lt;code&gt;&amp;lt;ul&amp;gt;&amp;lt;?php include (&amp;quot;http://www.yourdomain.com/feedinc.php&amp;quot;) ?&amp;gt;&amp;lt;/ul&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Blog #2 is where the posts came from, and that's where you put feedinc.php.  I have it in the root of the site, not in the wordpress directory.&lt;/p&gt;
&lt;p&gt;Once you get it to work, you can adjust the wp_get_archives function call to show the whole post, which I might be able to figure out how to do here in a bit.
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46079</link>
<pubDate>Fri, 08 Jun 2007 21:52:26</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46079</guid>
<description>&lt;p&gt;so that &lt;em&gt;would&lt;/em&gt; work, the only problem is that the other install is on a  completely different domain (same sql server/ftp though).. so I need it to point there!
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46078</link>
<pubDate>Fri, 08 Jun 2007 21:47:51</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46078</guid>
<description>&lt;p&gt;trying it now, thanks!
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46077</link>
<pubDate>Fri, 08 Jun 2007 21:47:40</pubDate>
<dc:creator>dreamweaver</dc:creator>
<guid isPermaLink="false">46077</guid>
<description>&lt;p&gt;Okay, how about this in the feedinc.php file:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;?php&lt;br /&gt;
require(&amp;#39;./wordpress/wp-config.php&amp;#39;);&lt;br /&gt;
define(&amp;#39;WP_USE_THEMES&amp;#39;, false);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;?php wp_get_archives(&amp;#39;type=postbypost&amp;#38;limit=5&amp;#39;); ?&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I found a support topic in the WP forum that uses that instead.  This line also works for me on my site.  Let me know if it works for you, Jackosh.  Mom doesn't seem to be connected at the moment...
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46072</link>
<pubDate>Fri, 08 Jun 2007 21:22:56</pubDate>
<dc:creator>dreamweaver</dc:creator>
<guid isPermaLink="false">46072</guid>
<description>&lt;p&gt;Hmm, that may be what the issue is, but I'll ask her anyway, because she still might know how to help.  Later...
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46071</link>
<pubDate>Fri, 08 Jun 2007 21:18:03</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46071</guid>
<description>&lt;p&gt;I'm using 2.2
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46068</link>
<pubDate>Fri, 08 Jun 2007 21:16:34</pubDate>
<dc:creator>dreamweaver</dc:creator>
<guid isPermaLink="false">46068</guid>
<description>&lt;p&gt;Oh, what version of WP are you running?  That might have something to do with it, since I'm on 2.0.whatever, not 2.1.whatever or 2.2...
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46067</link>
<pubDate>Fri, 08 Jun 2007 21:12:36</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46067</guid>
<description>&lt;p&gt;thank her for me :)  I appreciate you going out of your way for me!
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46066</link>
<pubDate>Fri, 08 Jun 2007 21:11:53</pubDate>
<dc:creator>dreamweaver</dc:creator>
<guid isPermaLink="false">46066</guid>
<description>&lt;p&gt;Jackosh, let me ask my mom if she remembers what she did.  I'll be back...
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46065</link>
<pubDate>Fri, 08 Jun 2007 21:10:35</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46065</guid>
<description>&lt;p&gt;It would make a lot of sense, but I just can't seem to get it going!&lt;/p&gt;
&lt;p&gt;Here is the code I'm playing with:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
require_once(&amp;quot;/mydomain.net/wordpress/wp-blog-header.php&amp;quot;);&lt;br /&gt;
define(&amp;#39;WP_USE_THEMES&amp;#39;, false);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;?php wp_get_archives(&amp;#39;type=postbypost&amp;#38;limit=5&amp;#39;); ?&amp;gt;&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;highfivehero.net is just a domain of mine that I setup a dummy wp install to test this.. but still, no dice.
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46060</link>
<pubDate>Fri, 08 Jun 2007 20:36:51</pubDate>
<dc:creator>Devin</dc:creator>
<guid isPermaLink="false">46060</guid>
<description>&lt;p&gt;I believe the location should simply refer to your directory, jackosh. For example, on DreamHost my WordPress install is located at: /devinreams.com/public_html/wp-blog-header.php&lt;/p&gt;
&lt;p&gt;Does that make sense?
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46058</link>
<pubDate>Fri, 08 Jun 2007 20:32:30</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46058</guid>
<description>&lt;p&gt;after some digging, I think its the number after &lt;code&gt;Target01&lt;/code&gt; that is unique to you.. now I need to figure mine out!
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46056</link>
<pubDate>Fri, 08 Jun 2007 20:25:17</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46056</guid>
<description>&lt;p&gt;hmm I can't seem to get that to work- I think it has something to do with some of that code that is probably unique to the server you're on.. I'm trying to work with that general idea though..!
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46051</link>
<pubDate>Fri, 08 Jun 2007 19:55:58</pubDate>
<dc:creator>dreamweaver</dc:creator>
<guid isPermaLink="false">46051</guid>
<description>&lt;p&gt;Um, I'm not really sure, because I don't know why this works.  There are no directories like that on my site, so I'm guessing it needs to be there just as is for whatever reason, but I don't know why.  I've never been able to figure out why that works, but it does.  Try it, the worst that can happen is it won't work for you, then I can stay up half the night testing it on my other sites to figure out why... ;)
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46049</link>
<pubDate>Fri, 08 Jun 2007 19:49:06</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46049</guid>
<description>&lt;p&gt;Should I use &lt;code&gt;/mnt/Target01/328146/&lt;/code&gt; like you included?
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46003</link>
<pubDate>Fri, 08 Jun 2007 11:19:42</pubDate>
<dc:creator>dreamweaver</dc:creator>
<guid isPermaLink="false">46003</guid>
<description>&lt;p&gt;You could do this, too:&lt;/p&gt;
&lt;p&gt;save this in a file called feedinc.php on the site that you want to include:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;?php&lt;br /&gt;
require_once(&amp;quot;/mnt/Target01/328146/www.yourdomain.com/web/content/your-blog-directory/wp-blog-header.php&amp;quot;);&lt;br /&gt;
define(&amp;#39;WP_USE_THEMES&amp;#39;, false);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;?php wp_get_archives(&amp;#39;type=postbypost&amp;#38;limit=5&amp;#39;); ?&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;then access it from the page you want it to show up like this:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;ul&amp;gt;&amp;lt;?php include (&amp;quot;http://www.yourdomain.com/feedinc.php&amp;quot;) ?&amp;gt;&amp;lt;/ul&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I have no idea why this works, my mom made it up for me over a year ago, but I use it all the time.  You can style it with CSS as well.
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46002</link>
<pubDate>Fri, 08 Jun 2007 11:15:26</pubDate>
<dc:creator>Oli</dc:creator>
<guid isPermaLink="false">46002</guid>
<description>&lt;p&gt;It seems silly to convert out to another format when you have the raw data just sitting there...&lt;/p&gt;
&lt;p&gt;I think you'd have to hack it in pretty manually but I can't see why it couldn't be done.
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46001</link>
<pubDate>Fri, 08 Jun 2007 11:11:19</pubDate>
<dc:creator>dreamweaver</dc:creator>
<guid isPermaLink="false">46001</guid>
<description>&lt;p&gt;Would &lt;a href=&quot;http://www.feedforall.com/free-php-script.htm&quot;&gt;this &lt;/a&gt;work?
&lt;/p&gt;</description>
</item>
<item>
<title>Accessing a different WP install on my blog</title>
<link>http://decaflon.com/programming/notes/4356/p/1/#response-46000</link>
<pubDate>Fri, 08 Jun 2007 11:05:15</pubDate>
<dc:creator>jackosh</dc:creator>
<guid isPermaLink="false">46000</guid>
<description>&lt;p&gt;I have something that I would really like to do, but I'm not too sure how possible it is.&lt;/p&gt;
&lt;p&gt;I have a blog at one address.  I would like to access a WP install at another blog address of mine, to display those posts using a *special wordpress loop.  I have full access to  the mySQL server of the other address.&lt;/p&gt;
&lt;p&gt;Is this even possible?  Any ideas of how I could do this?&lt;/p&gt;
&lt;p&gt;Thanks!
&lt;/p&gt;</description>
</item>

</channel>
</rss>

