We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Wordpress Redirect

Development and Programming

Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.