Link to home
Start Free TrialLog in
Avatar of trevor1940
trevor1940

asked on

Export Wordpress to HTML

Hi

Has anyone had any experience of exporting entire WordPress blog to html files

each post will have it's own folder named from 2 wp_terms entries
I need to grab the wp_terms associated with  the post and create metadata tags
all images and other post links will need to copied into its folder and the links made local

I suspect I'm going to need to write a custom script to do this

Any help with this greatly appreciated especially the  SQL to link the posts to the wp_terms

Thanx
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

HTML only without the PHP can not access the database.
Yes. A custom export script will be easiest.

You can use one of the many export facilities + you'd still require some script to run afterward to create your folder layout using wp_terms entries.

I'd just write a script to create my folder hierarchy + dump raw posts into my custom naming scheme.
Avatar of trevor1940
trevor1940

ASKER

I'd just write a script to create my folder hierarchy + dump raw posts into my custom naming scheme.

That is what I'm intending
Any idea what the link is between the tables is?

I know

wp_postmeta.post_id = wp_posts.`ID` 

Open in new window


so Once I know which post I need I can grab the meta data

Which is the problem

in wp_terms.name = 'Wanted'  and term_id = 1234 (This is a category of post I need to export)

Do you know the link between wp_terms and  wp_posts
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanx for your help