hey everyone I am looking for anyone who might know how I can post articles to wordpress via a custom php script. Basically, I want to export an old website database and articles to wordpress and just wanted to automate it. Any ideas? Cheers
If you want to do this at once the simple way would be to export the post table of the old website and dump it on the new site.
What you need to do is to figure out how the custom CMS stores the posts. Then figure out how WP stores its posts. Now that you know these you can create an script which reads the posts from the CMS database, creates an INSERT statement which will insert the data into the WP's post table. You can do this by getting each post and then inserting it into the new database or by getting all of them, creating the INSERT and executing it once on the WP database. I'm assuming both the CMS and WP are on the same server.