Generate XML for import into wordpress - create satellite
In his writing on the reproduction of content to create a satellite or to promote your site using a free program to clone articles "Article Clone Easy" I mentioned tags, which mark the duplicated article, and promised to tell you why I need it, and put the script, which in the future process the results of cloning:
"You'll notice on tags, which I make out the title, body, serial number and label to be. I will dwell in them ... "
I am pleased to fulfill the promise ![]()
Thus, the original article successfully reproduced ( with the example template is still available ) and from N received new and unique articles. WordPress correct assembly is installed and configured. The case for small - to get our newly created content in style and enjoy the results!
In a single satellite (the script for mass publication in wordpress blogs will also be published, do not miss it!) Content is easiest in my opinion, zagruzayutsya using import XML, built-in engine wordpress. It is in this way I am going to move.
What we have at the entrance? At the entrance we have a file consisting of multiple entries of the form:
<article_id> 1 </ article_id>
<header> Yandex </ header>
<body> Yandex - IT-company from Russia, is the owner of the eponymous search engine on the Web and Internet portal. <strong> search </ strong> <strong> system </ strong> «Yandex" is the 2nd largest non-English search engine Baidu after the Chinese and the eighth largest <strong> search </ strong> <strong> sites </ strong > of the world by the number of processed <strong> search </ strong> requests. </ body>
<tags> yandex, search, Yandex, a search engine </ tags>
<category> Search, SEO </ category>
Note: The tag "<article_id>" in the way of bulk loading of articles into wordpress is not used, but do not remove it sluduet. He will still need us.
This file is - or rather, writing of it, we want to import into our wordpress-satellite. To solve this problem and designed my free script called ACE-WPXMLCreator ( home page ).
Operating procedure is as follows:
Encode the source file with the articles in Unicode without the use of BOM (UTF-8 without BOM). Under * nix it is most natural to be done with iconv:Aiconv FILE-f CP1251-t UTF8-o utf8-FILEwell as under windows recommend using the free text redktor "Notepad + +".
- Run the script by specifying options in the call path to the source file and, optionally, some optional parameters:
$. / ACE-WPXMLCreator.pl articles_example.txt example_satellit.xml two open close (on the options starting dwell on). - Importing the resulting script xml-file with a staff tool import wordpress.
And now - more details.
Startup options should be included in this order:
1. Required options are:
articles_example.txt - the source file name with the articles for a satellite;
2. Optional options:
example_satellit.xml - output file name, call it want;
2 - number of articles to be published for one day, the time of publication is taken at random. This option will give "humanity" to your satellites, as built-delayed publication of wordpress will publish all upcoming article in the occurrence of the specified time of publication.
For example, if you have 5 papers and you set to publish 2 per day, on the first day will be scheduled to be published two articles on the second day - two articles on the third day - the remaining one article;
open - the status of comments. open - resolved, close - not allowed;
close - the status of "pingbekov." same as above.
Import of articles in the satellite too hard to do:
1. Go to control panel, then Tools - Import - WordPress;
2. Select the script you created the xml-file articles for the satellite, click "Upload file and import":
3. Indicate, for whose authorship will be listed imported article. You can create a new author, you can assign an existing one. Support for import of investment so far - respectively daw you can not put. Click "Submit":
4. Contrary to the joyful signs, the Council "enjoy," we'll work eschenemnogo ![]()
And it is - go to "Record - Edit." Need for this, but personally I prefer the extra time to verify the correctness of the manipulation. We conclude by looking at the date of publication of records:
Entries are scheduled for publication and will be published automatically, your participation is no longer required ![]()
In fact, we have created a satellite on wordpress in 5 minutes!
What is the minus of this approach (a single import content in a wordpress xml)? The point is that all content (at least - most of it chatst) must be prepared in advance. The second script is the mass publication of blogs, which I promised to publish, free from this disadvantage.
The plans:
- Import images are in the same directory as the source file;
- A breakdown of the final size of the files in less than 2 MB (so as to allow one time import engine wordpress);
- Making the work layout categories.
And as usual, in the end you can download the script to create XML-templates wordpress. The archive contains three files:
ACE-WPXMLCreator.pl - executable script to run the interpreter requires installed Perl (eg ActivePerl). Do not forget to set the correct permissions to the executable file, in case of * nix-systems;
articles_example.txt - an example of a source file with the articles for a satellite;
wp-satellit.xml - the result of the script.
The online version WPXMLCreator !
Good luck! ![]()
More on similar topics:
Filed under: SEO , WPXMLCreator , Coding |
Tags: SEO , WordPress , WPXMLCreator , programming , satellite |
58 comments 

Hello dimio could not tell you one thing. I'm doing an article in the xml rather want to write a script that is the thing for me to decide
The problem is that I have done in the xml by hand to check but all articles are added to the one the very first column,
how to specify the name of a column in which you want to add xml, this function is in general?
Thanks in advance for your help
I do not really understand the question.
Can a LAN? ICQ, Skype can leave?
While okay here's the problem.
I have an xml file that loads a post in WordPress
everything is fine, it loads but the problem is that it loads only the positions of one and the same column, the question of how to specify the name of the column where I want to download fast?
Contacts are listed under "Contact Us", which of course is not entirely clear.
Well, that someone can help me?
admin tell me how to specify in the xml file and the category in which you must import the post from the xml file??
provided that the topic has already been established
2
<category domain="category" nicename="poleznoe"> Useful </ category>
Something like that be?
Thank you, it works!
But why write it? nicename = ""?
And one more question how to add a post in the subheading? is this possible?
Add to subheading via control panel, do the blog XML export and look at the markup. Surely you can.
Hello! very interesting, but I have a problem, even shame: Where is checked line endings (LF - Unix)? This gives an error and I bet I can not find it.
Thank you in advance))
Under Windows, use the convenient editor Notepad + + - there you can change the file format.
Thank you! You know, found a mistake - had extra spaces after the
Works great, very grateful, but still have not tried to add pictures in this way.
Not at all. Write if you have any questions. In general, I recommend the online version (see link at the end of this article), it is fresh and help it sort of very detailed.
I'd click on the menu ssilku Worldpress import my vilazit: In the performance of API-query arose neizvesnaya HTTP error
i vso further Nichev no (
To get started:
1. What are you trying to import?
2. Version of WordPress?
1.Importiruyu file. Xml
2.WordPress Uk 3.1.1
1. What is this xml created? If the online version - it makes sense to understand, otherwise - it is useless, the script of this article, I gave up long ago.
2. Uk - is the Ukrainian language or some kind of Ukrainian special assembly? If there is a possibility - do ekport some entries from the blog and mail me to throw off such.
1.xml took trains from the template that downloaded ( )
2.Uk? yes UTB Ukrainian version worldpress.mozhe integer not understood but the ability is another problem
and it does not import the file (and probably in the assembly ...
There's generally about the design template, no relation to the import of records via XML. I will in no way help - never used such patterns, and installing themes through the admin panel never had no problems.