• I am in the process of moving my old site to WordPress. My old site used a custom perl script to maintain a text-file “database” of recipes. I would rather not do this by hand. Is there a module to import from a text file? Alternatively, is there a very simple “Import” script that I can use for a starting point to write my own?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Have you looked at the import scripts in /wp-admin ?

    If it’s custom the only way you’re not going to have to import it by hand is to write an import script.

    Thread Starter mfischer2

    (@mfischer2)

    I will look in that folder. I dont mind writing a custom script, but a simple script would make a great starting point. (The import from MT script is more complex than I need).
    Thanks for the info.

    You can still use ideas from import-mt.php
    I am a little busy these days, but do ping me if you need help with something wp related that you can’t sort out.
    mail @ carthik dot net

    Thread Starter mfischer2

    (@mfischer2)

    Carthik(?),
    Things are going along well. import-mt is well written compared to import-textfoobar. I gave up on PHP and reverted to PERL, since thats what my original parser is written in, it made my life easier.
    One question:
    What is the difference between post_name and post_title? Can they be the same?
    If it makes any difference, I am importing a recipe database. The recipes have a Title obviously, but I dont know what post_name would be.
    Mail: matt @ mattfischer d0t c0m

    mfischer2-

    Any luck getting your text file import script working? I would like a copy if your willing to share.

    Thanks,
    Brian

    @brian,
    do you realize you replied to a post from 2004?

    I didn’t notice the date. However, I have not been able to find a way importing a text file into WP.

    Do you know of a way to import a text file into WP?

    Thanks,
    Brian

    Brian,
    I just stumbled upon your post…and I too am looking for a way to import a text file into WP. I am working on modifying some stuff right now, but I’m brand new to PHP and I know there’s got to be something already written.

    Does anyone know of the easiest way to import a text file into WP?

    Thanks,
    Katie

    I provide some thoughts and instruction on how one might go about importing generic text documents into WordPress using the MT import, here:

    http://wordpress.org/support/topic/37854

    Thank you,
    I will look over it…what you’re suggesting will def. be easier than the way I was going about it. Since I will have to parse the document somehow/someway no matter what I do, this looks like it will be easy because the import function is already written.
    I have already started hacking away at the wp-mail.php function…taking away all the pop mail stuff and adding my code to take .txt files from a specified directory and post them. I’m stuck on the post part – prob. cause I’m not familiar with php or wp functions at all?
    I will look in to your way/suggestion…and may have some questions for you later 🙂
    Thank you,
    Katie

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘import from text file?’ is closed to new replies.