LG Wordpress Redirect
Posted: 07 August 2008 07:29 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  827
Joined  01-24-2006

Hey guys,

Recently I have been working on quite a large site that combines a Wordpress blog and a Movable Type blog into a single EE site.

The main problem I had was that the WP site already has a bunch of incoming links for entries and categories. Unfortunatley they are the ?p=101 and ?cat=10 kind so mod rewrite is out of the question.

My solution… write an extension and get EE to do the redirect. LG Wordpress Redirect was born. Its a pretty simple extension that’s fairly easy to configure.

Requirements:

When you import your wordpress blog into EE you must create a custom field that holds the WP entry ID. Jot down the custom field ID (not the short_name) becuase you will need that in the configuration.

The only other tricky part might be the category maping configuration…

It goes a little something like this:

2:26:one-column
3
:27:two-column
4
:28:three-column
6
:52:invitation
7
:53:newsletter
5
:54:announcement

Each category must be on a new line and is divided into three pieces with a colon (:).

Each line must be inthe following format:

wp_cat_id:ee_cat_id:ee_cat_url_title

That’s about it. I wrote this today so it might still have a couple of bugs. I’m throwing it out there for anyone who is interested.

Cheers.

Download LG Wordpress Redirect v0.0.1

Image Attachments
FirefoxScreenSnapz001.png
Click thumbnail to see full-size image
 Signature 

leevigraham.com

VIEW ALL MY EE ADDONS!!

LG Polls 1.6
LG Better Meta 1.6
LG Twitter 2.0
LG Addon Updater 1.0
LG TinyMCE 1.3.0

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 60712 Total Logged-in Users: 19
Total Topics: 73164 Total Anonymous Users: 13
Total Replies: 394607 Total Guests: 519
Total Posts: 467771    
Members ( View Memberlist )