Migrate post_excerpt from wordpress to habari.db

3 views
Skip to first unread message

Ryan Lee

unread,
Nov 30, 2008, 4:04:57 AM11/30/08
to habari-users
Sorry I am not good in English...

Habari postfields.plugin.php activated, and an additional fields
called "description" added.
I know use
<meta name="description" content="<?php echo $post->info-
>description; ?>" />
in header will see the result.
Those information stored in habari.db's habari_postinfo.

Every post in wordpress are using excerpt text, they show in <meta
name="description" content="" />.
Those information stored in wordpress mysql's post_excerpt.


There are more than one thousand posts in wordpress, It's not possible
to edit every post in Habari.( If all meta description are gone,
Google serps will hurt! ) So I want to migrate post_excerpt from
wordpress mysql to habari_postinfo in habari.db. The problem is how?
I tried edit wpimport.plugin.php, but failed...

Hope you can understand what I am talking about...Sorry again about my
bad English...

Graham Christensen

unread,
Nov 30, 2008, 2:13:54 PM11/30/08
to habari...@googlegroups.com
The easiest way in which to do this would be to take the dump of the
database and insert it in based on the title of the post, but I may be
wrong :) backup your database first.

Graham Christensen

http://itrebal.com - Customized Web Hosting
Graham.Ch...@iamgraham.net

Chris Meller

unread,
Nov 30, 2008, 6:40:25 PM11/30/08
to habari...@googlegroups.com
I started working on adding an option to the WordPress importer to import the post_excerpt field as a PostInfo value, but got stalled by problems with our SuperGlobal implementation.

You could certainly use Graham's suggestion of doing it in raw SQL, but I hope to have the importer updated eventually.
--

Mark Twain  - "It usually takes me more than three weeks to prepare a good impromptu speech."

Ryan Lee

unread,
Dec 1, 2008, 12:41:29 AM12/1/08
to habari-users
The reason that I want migrate to habari is no SQL server needed. I
plan to use sqlite to save server resource. I tried edit
wpimport.plugin.php, because I don't know how to play with raw sqlite
( habari.db ).
Reply all
Reply to author
Forward
0 new messages