photo

spiritfly

shared this idea
6 months ago

Employees Involved

photo

SCM

Admin

Statistics

8
Comments
1
Views

Share

1
votes

Export as Wordpress XML FIle

I've been playing around with another similar software and noticed that they have an option to export as wordpress xml type of file which is used to import/export wordpress posts/pages directly. This is a great way to fill a wordpress site with lots of content in a second.

I know SEO CM has it's own wordpress module far superior than any other desktop software, but this requires to input login information for every wordpress site etc.. which is something I try to avoid.

It is much simpler for me to simply export 100 of articles and import them with one file in a wordpress site.

So the export function would be the same as any other export option, but it should offer a few more things:

1. choose post type: posts or pages

2. drip-feed posts, select date when to start the drip-feed, how regular(day, week, month..) should be the posts scheduled, backschedule etc..

Under Consideration
+1 I like this idea
Add Comment

Comments (8)

photo Employee
1

I like this idea.

But I need to research and find what XML structure looks like.

There is a template editor so it should be possible to do this for each post.

photo
1

SCM wrote:

I like this idea.

But I need to research and find what XML structure looks like.

There is a template editor so it should be possible to do this for each post.

The proper XML structure can be seen if you do an export of some sample posts from any wordpress installation. Make sure it is the latest version though as there may be some new changes in the export format.

If you want I can do this for you.

I will try to do it with the template editor as well.

photo Employee
1

spiritfly wrote:

SCM wrote:

I like this idea.

But I need to research and find what XML structure looks like.

There is a template editor so it should be possible to do this for each post.

The proper XML structure can be seen if you do an export of some sample posts from any wordpress installation. Make sure it is the latest version though as there may be some new changes in the export format.

If you want I can do this for you.

I will try to do it with the template editor as well.

If you can give it a go I would appreciate it.

I can then test out your changes and include it officially in the SCM setup.

photo
1

SCM wrote:

spiritfly wrote:

SCM wrote:

I like this idea.

But I need to research and find what XML structure looks like.

There is a template editor so it should be possible to do this for each post.

The proper XML structure can be seen if you do an export of some sample posts from any wordpress installation. Make sure it is the latest version though as there may be some new changes in the export format.

If you want I can do this for you.

I will try to do it with the template editor as well.

If you can give it a go I would appreciate it.

I can then test out your changes and include it officially in the SCM setup.

Well I think I've built it and it works well. Here is the template:

  1. <?xml version="1.0" encoding="UTF-8"?>

    <rss version="2.0" xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/"; xmlns:content="http://purl.org/rss/1.0/modules/content/"; xmlns:wfw="http://wellformedweb.org/CommentAPI/"; xmlns:dc="http://purl.org/dc/elements/1.1/"; xmlns:wp="http://wordpress.org/export/1.2/">;

    <channel>

    <wp:wxr_version>1.0</wp:wxr_version>

    <item>

    <title><!

photo
1

not sure what happened here, the message got cut out for some reason.

So the issue is that when exporting multiple articles it will create a

separate file for each article. Unfortunately wordpress import does not

work with multi-select and you cannot import mulitple files at once. The

solution would be to somehow merge the files into one with a script

after the project has finished.

Is there wny trick in the template code in SEO CM to loop all articles into one file.

Something weird is cutting out the code, hmm:

  1. <?xml version="1.0" encoding="UTF-8"?>

    <rss version="2.0" xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/"; xmlns:content="http://purl.org/rss/1.0/modules/content/"; xmlns:wfw="http://wellformedweb.org/CommentAPI/"; xmlns:dc="http://purl.org/dc/elements/1.1/"; xmlns:wp="http://wordpress.org/export/1.2/">;

    <channel>

    <wp:wxr_version>1.0</wp:wxr_version>

    <item>

    <title><!

photo Employee
2

There is no way currently to loop elements in a template file.

Would a solution be to write each file seperately then actually join it all together at the end?

photo
1

SCM wrote:

There is no way currently to loop elements in a template file.

Would a solution be to write each file seperately then actually join it all together at the end?

Yes, that could probably work. I am not too sure how exactly though as the file has a header and footer part. The looped items are inbetween. Not sure how to do this with a batch file though, but I know it's possible.

photo Employee
1

That makes things more complicated, it means we will need <for> loop.

Leave Comment

photo