Copy most recent post from Wordpress to another server?
January 23, 2006 5:17 PM   RSS feed for this thread Subscribe

Copy most recent post from Wordpress to another server?

There's a WordPress blog at foo.whereiwork.com, and I've been given the task of making the most recent post from it into a server-side include at bar.whereiwork.com.

Quick and dirty version - write a perl script to grab the post, munge it and ftp it to the other server. Add a special link to the WordPress interface which runs that script and tell users to click on it when done. That won't take long but it's got obvious problems.

Anyone got a better way? Can I use a custom template somehow? Export the same post in two different templates? Can WordPress FTP files to other servers, with a plugin or something similar? If I used different software, MovableType for instance, would it be easier?
posted by AmbroseChapel to computers & internet (4 comments total)
The "right" way to do this is probably to pull the rss feed from the originating blog, and use the latest post info from that. If you want to get fancy, you could configure wordpress on the originating server to ping the destination server when a new post is published.

What's running on the destination server?
posted by Caviar at 6:50 PM on January 23, 2006


What's running on the destination server?

I can't write scripts on that other server, that's the problem.

Sensible thought about the RSS, thanks for that. Just run a cron job every hour and grab the latest post, then no human being has to worry about it and it's never more than an hour out of date.

And even if I'm going to add that "copy to other server" button, it'd be better to use the feed than screen-scrape.
posted by AmbroseChapel at 8:00 PM on January 23, 2006


There's a plugin for Movable Type which can FTP your files remotely. If you're interested, I can point you to that, as well as a plugin which can import your WordPress entries. You can get in touch at anil at sixapart.com
posted by anildash at 9:50 PM on January 23, 2006


I'm sure if you asked on the Wordpress Forums you'd be able to find help... they are always remarkably helpful.
posted by antifuse at 2:13 AM on January 24, 2006


« Older Please recommend a Washington ...   |   I'm looking for very simple WY... Newer »

You are not logged in, either login or create an account to post comments



Related Questions
Find me a content management system that can hide... August 20, 2007
Unusual Configuration in Worpress April 17, 2007
Pressing onward August 17, 2006
PHP class for externally posting to blogs? July 25, 2006
Daily MT blog post for del.icio.us links with one... May 27, 2006