how to export wordpress pages,posts with media for another site - wordpress

I have wordpress site i need to export posts , pages with media and attachments engaged with them.
and need to use it in another wordpress site.
Also i have installed the woocommerce in it , i need to export the store settings, products, categories , tags with images used for it...
There are many custom post types used in my site. i need to also export theme with medias used...
I tried using Tools -> Import / Export but that does not exports the data with media or images.
Need an immediate help..
Thanks

I just found out how to do this today, and answered this question with a great guide with photos on how to use the export and import tools in WordPress to transfer photos to a new site to be used in posts and pages. This is done by editing the xml files to show the correctly transferred image URLs.
Since I can't post photos because of my reputation, here is the link.
https://wordpress.stackexchange.com/questions/117344/failed-to-import-media/372304#372304

I have wordpress site i need to export posts , pages with media and attachments engaged with them. and need to use it in another wordpress site.
Also i have installed the woocommerce in it , i need to export the store settings, products, categories , tags with images used for it...
There are many custom post types used in my site. i need to also export theme with medias used...
I don't think so you had left something un-neccessary, So Download the database and import it wherever your new database you want to store.
Then download the wp-content/themes, wp-content/uploads, wp-content/plugins Directories. OR Simply Download your wp-content directory. Now you have everything.
I have Everything Now?
Now download the wordpress from wordpress.org and install it to your server. After complete the Installation, Replace the wp-content directory with your new installed wordpress. We assigned our old stuff to New Wordpress.
Now its time to replace Database. There are several online tutorials to replace your old database to new one.

There are multiple ways you can do this:
Manual
Using plugin
For manual, it's a little more lengthy process, you need to download complete files from one server and upload it to another. Do some changes to the backup DB i.e replacing urls and then uploading the DB file as well.
Other way, which is far more better is to use the plugin called as "All in one Migration". Here is the link which can guide you on the complete process:
https://makersbyte.com/easily-export-import-wordpress-sites/

Exporting your WordPress site can be used for site moves or simple backups. In this guide, I’ll provide some simple and easy options to export your WordPress sites for both non-technical and technical people.
Exporting your site creates a backup of your site, usually in the form of a .tar.gz or .zip file, which you can then use to restore or migrate your site to another domain or host. Once you have the backup it’s an easy matter loading a blank WordPress site, loading the plugin, and then restoring the site from your backup file.
When you export your WordPress sites you have the choice to export all your posts, pages, comments, custom fields, terms, navigation menus, and custom posts but the downside to this approach and it’s that WordPress doesn’t export plugins, theme, and settings of your site.
Export Site
1. Log into WordPress
2. Go to Tools > Export
3. Choose what you want to export:
-All
-Posts
-Pages
-Media
4. Click Download Export File. This will download a .xml file to your computer.
Import Site
1. Log in to the WordPress site you want to import it to.
2. Go to Tools > Import.
3. Find the option called WordPress at the bottom and click Install
Now.
4. When it’s finished installing, click Run Importer.
5. Upload the .xml file you exported.
Once you’ve completed exporting your site, you will want to test everything on the site. Make sure that you look for dead links, check menus, and any functionality or post that you consider important to your website.
It doesn’t have to be hard to export your WordPress sites. There are options for everyone, no matter what level of technical skill you have. And should you ever encounter a conflict, hack, or choose to move your site, having an export of your site is invaluable.

Related

Transferring media with posts while moving wordpress blog to another server

I am trying to move a wordpress blog from one server to another server. I am able to move the posts and user accounts. I am able to move the media uploaded by the users but they are no longer linked to the posts. How can move the media with the posts without losing the linking
In order for the media attachments to be linked to your Posts, you need to migrate all of the wp_posts table also, not only the parts of it. As each attachment is actually linked by a parent_post field with other posts.
Also, you can use the WordPress Importer plugin to import the posts. By importing the posts, the attachments will be downloaded in the new server and linked with the posts. But if you have a lot of post and media files, that would take time.
Export tool
You can export your posts, pages, comments, custom fields, categories, and tags from one WordPress website to another website by creating an XML file.
Download and save this XML file to your computer .and by using import function in other WordPress websites you can import XML file.
To open Export tool go to Dashboard> Tools > Export.
Now click on an Export button it will open a new window.
what_to_export
There you can see three options
All content – By using this option you can export all content of website including posts, pages, comments, custom fields etc.
Posts or Pages– By next two options you can export Posts or Pages content. On selecting Posts or Page option, it will open a new window with different options like authors name, date range, and status. Hence by using these options, you can select your desired pages or posts that you want to export.
download XML FILE
After doing all settings click on Download Export File. An XML file will automatically start downloading to your computer.
Import tool
You can import posts, page or comments or other content from another WordPress.com or WordPress.org blog or site. To open import tool go to Dashboard > Tools > Import.
By default, WordPress does not provide import functionality. Hence to get this feature you have to install a Plugin.
On clicking on import .it will open a new window where you can choose a plugin according to your need from the list of plugins.
import_tool
WordPress importer- is used for Import posts, comments, custom fields, pages, and categories from a WordPress export file.
Now just click on WordPress out of all plugins. It will release a new window .where you click on install now button to install the WordPress importer.
install_importer
Now activate this plugins .after activation it will open a new tab from where you can choose your exported XML file (created by using the export tool) from your computer.
choose_XML_file
Now click on upload and import XML file. It will automatically add your exported content to your website and that’s it.
Hope this will help you
You need to export your posts from your old site, import them to the new site and then redirect the post to their new location.
You could start by packaging up your Files.
Well if you simply If you simply drag and drop files from one server to another using a GUI interface, chances are good that the GUI will omit hidden files such as the vital .htaccess file. Besides, transferring hundreds of files via FTP can take a long time because each file must often undergo some sort of authentication; in other words copying over a hundred 1 megabyte files takes a lot longer than copying over a single 100 megabyte file.
On a UNIX style system, you can create a compressed file using the tar command:
tar -czf /path/to/backups/modx_revo_site.tar.gz /path/to/modx_doc_root/
Once you arrive on the other end, it's good to put the zipped file into its own directory before you extract it. The idea here is that if it explodes, it's easier to clean up the mess if it's contained in its own directory.
On a UNIX style system, you can unpackage a .tar.gz file using the following commands from a command line:
gunzip modx_revo_site.tar.gz
tar xvf modx_revo_site.tar
Once you've extracted the files, you can move the whole directory into the correct place. Again, be careful about moving files in bulk: you might inadvertently forget to copy those hidden files. It's better to rename or move the containing directory instead.
Detailed explanation can be found under: https://docs.modx.com/revolution/2.x/administering-your-site/moving-your-site-to-a-new-server
Important is, that you use a permanent redirect not a temporary redirect. This will decrease the SEO Power over time. The Temporary Redirect redirect status response code indicates that the resource requested has been temporarily moved to the URL given by the Location headers.
Totally agree with the above said methods. Make sure to include all media and copy the authorizations as well. I had some issues a while ago when I tried to move my content on another server an totally forgot about the authorizations...

Can I export all Wordpress pages, preferences, ect?

I have a website built with Wordpress and it has since been hacked and will forward customers to a different website that displays inappropriate things. I do not have any backups of the website so I can not just restore a backup and get it back to normal.
So my question is do I have to re-do all my pages and everything on my website if I delete the website and all of its contents or is there a way to export all the information about the website so I can import all of my settings and avoid having to redo the entire website? Including the theme?
If you have admin access for the site you can go to tools->export and you can create backup in the form of xml which you can use into your another website. Usually in case of hacking/ malware attack the malicious code is added onto site's theme so you can reinstall theme and import data

How to export a whole wordpress site including all the html css files?

I was wondering how I can export the whole template on WordPress. There is export under tools, but it only exports the database. I have edited the WordPress template and I would want to use this template for another website. How would I be able to do this?
I think its not enough to copy the theme folder to another WordPress because some themes needs some extra plugins to work Ex. theme builders etc.. and there may be database related configs
to clone a word press website
export the database using a tool like phpMyadmin
import database
copy whole WordPress website including all files (you can use filezilla ftp client for this or use hosting panel. there should be a file manager compress the all files and take)
find the wp-config file in the root and change the new db, usernames, password ..
you may need to login to the wordpress dashboard -- > settings --> general and change the wordpress base URL
it should work
With an FTP program you can download all the template files from /wp-content/themes/[YOUR TEMPLATE NAME]
There are different plugin for exporting Wordpress pages to HTML/CSS files.
One of them is "Export WP Page to Static HTML/CSS" from ReCorp

Migrating from Wordpress MU to single site

I have seen alot of information on migrating from wordpress Single User to Multi user but don't see any on migrating from MU to SU. I would be grateful if someone could point me in the right direction. I don't want to have to rebuild the sites manually.
Thanks
Do you mean automatically translate the WPMU sites into individual WP installations? I doubt anything exists. It would involve copying WP files, making necessary directories and creating configuration files, all the DB tables, dealing with the differences in DB and files from WP vs WPMU (image storage, plugins, etc)...
One solution, provided you have a handful of sites and not hundreds, can be to export the blog content via wp-admin > tools > export and importing back via wp-admin > tools > import once you have the new blog running. You will probably have to adjust the path for the images on the exporting XML files to agree with WP directory structure.
Yep, you just use the Export function. It's the easiest way, really.
No scripts exists that I know of, no posts either, because it's just like moving a blog off wordpress.com.
Except you can access the database if you need it.

How to back up wordpress site to be restored after a clean installation

My Wordpress blog appears to have been hacked and now blogs do not save and any changes I make such as approving a comment do not have effect. I am trying to backup my website so as to uninstall wordpress and perform a clean re-instillation. I want to create a backup so that when i restore the website will appear with everything the same as before: posts, images, links, colors, comments, themes, pages, etc. I have already backed up the MySQL database successfully. How do i backup the rest of the site.
Please tell me how to backup the site and also how to restore the site.
Thanks
You need to backup both your database and your Wordpress installation. The main resource to use for this is the Wordpress site:
http://codex.wordpress.org/WordPress_Backups
If you have phpmyadmin installed you can do a database dump from ther. If you don't have this installed then use mysqldump.
Wordpress installation backup can be initiated through the following URL:
http://[yourwordpressurl]/wp-admin/export.php
That will contain "your posts, pages, comments, custom fields, categories, and tags".
These links should get you started:
http://www.geeksaresexy.net/2008/01/29/how-to-backup-and-restore-your-wordpress-blog/
http://www.siteground.com/tutorials/wordpress/wordpress_backup.htm
http://codex.wordpress.org/WordPress_Backups
Good idea to look at FAQ: My site was hacked « WordPress Codex and How to Completely Clean a Hacked Wordpress Install.
best thing to do is to manually copy the database, as wordpress restore has an upload limit on the built in restore function. so if you've been blogging for a while, this can be really bad.
mysqldump -u yourUsername -p yourDatabaseName > databaseName.sql
will create the file databaseName.sql this is a full clone of all your database info (all your posts & wordpress configs)
then you can restore later with
mysql -u yourUsername -p yourDatabaseName < databaseName.sql
I figured it out. One way to cleanly install a new version of Wordpress but not lose your website is the use the Wordpress export feature as mentioned by Jon.
http://codex.wordpress.org/Tools_Export_SubPanel
This exports your blog to an XML file that contains all content of your site: posts, comments, authors, pages, etc. However, images do not go with. However when importing this XML file there is an option to download and import the attachments automatically which can be done if the original site is still online. So what I did is export my XML file, upload it to a wordpress blog installed on a subdomain automatically getting the attachments, then export an XML file from the subdomain to import into the actual wordpress site. This way my attachments were simply moved around from site to subdomain back to site. This made it easy because I did not have to handle backing up my attachments manually.
So what I did was back up my theme, export my blog to XML, then delete wordpress and my database then reinstall it with a new database on both my site and a subdomain of my site.
Then I imported my XML file and put my theme in the themes folder of the subdomain. Then I exported an XML file of this subdomain copy of my site and imported it into my real site. This made my blog have all the content correct and the theme right but none of the links, plugins, or colors correct. I then had to customize wordpress through the panel to get it back to the look and feel it was. For this It was lucky I had a stored copy of the site to refer to.
This process was long because I actually had to rebuild my site twice, one for the subdomain and then again for the actual thing. But it fixed my problems.
You can simply use EverLive.net. No need to install any plugin. No need for shell access. With this service you can simply make your wordpress website backup to the cloud. One-click restore option is also available wheneven you need to restore.

Resources