keep two blogs under the same domain

Install WordPress as multi-site, choose the option sub-directories. Your main blog will now under example.com/. Create a second sub-site and set its slug to portugueseblog. This site will now be accessible under example.com/portugueseblog. Now import the content from the old blogs into the new one.

Overwrite posts/pages via import

A good way around this I’ve found is to modify your local wp-config.php to access the remote database directly. You often have to enable remote sql in CPANEL. Then you enter the remote host URL in the define(‘DB_HOST’, ‘yoursite.com’); part of the config.

What is basic structure of xml for importing a page in wordpress?

WordPress has a full load of Importer Plugins that you can install from the ~/wp-admin/tools/import screen. They will serve as nice reference. Then there’s Ralf Alberts @Ralf912 Importer skeleton on GitHub/Gist which you can take as reference. Please note that this skeleton uses namespaces and therefore requires PHP 5.3+, or a rewrite. The main/important parts … Read more