[wp-hackers] Showing posts from multiple WP sites on a single site
David Chait
davebytes at comcast.net
Sat Aug 14 01:29:45 UTC 2004
Two things... ;)
1. I did preface it with "especially if the blogs aren't on the same
server/host". :)
2. Since Feedread does caching, it's actually significantly >less< overhead
than the normal processing. Of course, caching has the downside of not
immediately picking up changes -- you either have to: a. turn the re-cache
interval down to maybe 30 mins or an hour or so, or b. when you add a new
post, clear the cache (I could easily add a one-shot call to do just that,
instead of doing it by hand).
All that said, if you know PHP well, and all the blogs are in the same DB,
and you know the WP tables well, you can certainly write a mega-loop
yourself. ;)
-d
----- Original Message -----
From: "Alex King" <alex at alexking.org>
To: <hackers at wordpress.org>
Sent: Friday, August 13, 2004 7:02 PM
Subject: Re: [wp-hackers] Showing posts from multiple WP sites on a single
site
> This might be a reasonable way to go if you don't have sufficient
> database access, but if you can query the database(s) directly I'd
> strong advise against this route.
>
> There is a lot of overhead involved in this method:
>
> 1. Your page requests the feeds from the other pages (several http
> requests).
> 2. Each of the other pages may need to do database queries of their
> own, the process and return the data. Each one of these is nearly the
> equivalent of a standard page load.
> 3. Your page waits while all that data is prepared and returned.
> 4. Your page gets all that data, then has to parse the XML into PHP
> data structures, then output it to the page.
>
> At least that is how I understand this suggestion, I could be off base.
>
> --Alex
>
> http://www.alexking.org/
>
>
> On Aug 13, 2004, at 3:55 PM, David Chait wrote:
>
> > I've worked with a number of people doing just this. The easiest way,
> > especially if the blogs aren't on the same server/host, is something
> > like my
> > CG-Feedread script. You grab content via an RSS2 or Atom feed.
> >
> >> Craig Hartel wrote:
> >>
> >>> From the support forum:
> >>> "I've got several blogs running Wordpress, and I'd also like to show
> >>> all posts in one blog for people who prefer to read it like that. Is
> >>> there a (relattively) easy way of doing it?"
> >>> http://wordpress.org/support/3/10866
> >>>
> >>>
> >>> Craig.
> >
>
More information about the hackers
mailing list