0

Hello Guys

I have a running business website for a company that have a lot of plugins and user database ext... The issue that we want to create a fresh WordPress installation + a totally new theme , we need to edit the new theme then import all database including users/posts/comments after that put the new template online .

The question is how can be this done am so confused, can i edit the template then import the database or first import db then edit template , also now am using BackupBuddy but unfortunatley this plugin clone the current site so its not usefull i think .

Thank you in advance

2 Answers 2

0

Look in Tools, Export on the Admin screen. You can specify what to export (posts, images, pages), and then Tools, Import to get the posts into the new site.

This process is different than 'cloning' tools (my favorite is WP Clone). Some cloning plugins will allow you to specify only posts/images/whatever.

2
  • Thank you Rick i will try this . Just one more question , i create a new DB then i just do the import and export thing ? also can i transfare wp-content from the old wordpress to the new one this way all plugins will be exported as well ? Apr 23, 2018 at 23:11
  • If you use Tools, Import into the new/fresh WP install, only content is copied, not themes or plugins (or their saved settings). If you need to get plugins/themes (and their settings), then there are some 'clone' plugins that allow you to specify what 'pieces' of the database you want to export/import. If you copy the plugins folder, that just gives you a fresh install of the plugins, not any settings that are within the plugins. Same with themes. Tools, Export/Import will copy just the content, leaving your themes/plugin settings along on the target site. Apr 24, 2018 at 0:57
0

Will try and keep this as basic as possible.

  1. Download the database
  2. Download everything in the directory wp-content/
  3. Download wp-config.php
  4. Download .htaccess

Keep all of this safe and make a back up of it.

Install AMPPS this will give you a web server on your local machine.

Set up a new domain from http://localhost/ampps use something like dev.youdomain.com

Then inside AMPPS/www/dev.youdomain.com put a new copy of WordPress

Copy in the contents of the directory wp-content/

Add your new theme to wp-content/themes/

Open up your database with something like Sublime Text and do a find and replace for;

Find: http://www.yourdomain.com

Replace All: http://dev.yourdomain.com

Now create a new database with AMPPS at http://localhost/phpmyadmin via the PHPMyAdmin interface.

You then need to import your amended database into the one you created.

Assuming the database isn't massive then this shouldn't be a problem. If it is then you'll need to increase the file upload size in the PHP settings. This is a manual process by editing /Applications/AMPPS/php-5.6/etc/php.ini

Change max_execution_time, max_input_time, post_max_size & upload_max_filesize to the following

max_execution_time = 300
max_input_time = 600
post_max_size = 1024M 
upload_max_filesize = 1024M

If you change any of these then restart Apache.

Rename: AMPPS/www/dev.youdomain.com/wp-config-sample.php

To: AMPPS/www/dev.youdomain.com/wp-config.php

Open: wp-config.php

Edit the database details to match what you've just set up in PHPMyAdmin (In AMPPS: username is root, password is mysql)

Visit: https://dev.youdomain.com in your browser and run through the normal install instructions for WordPress.

SECURITY TIP: Do not use Admin as the default admin username!

Then go to

Dashboard > Appearance > Themes

Enable your new theme here

Then go to

Dashboard > Plugins

Check that all of the plugins which are running on the live site are enabled here.

Visit: https://dev.youdomain.com and see how it looks, then tweak the theme to fit your needs. You might need to double check the old theme doesn't have any custom code included in the templates to display parts of the existing site.

Remember if you amend an off the shelf theme downloaded from WordPress or elsewhere then you won't be able to update it in the future. The easy way around this it to make a child theme, or better still a custom theme from scratch.

Pro Tip:

I'd strongly advise you take a look at this if you plan to have development, staging and production environments running https://github.com/studio24/wordpress-multi-env-config

Additional suggestion*

Personally I would also consider doing a content audit of your site. Content which was relevant 2 years ago may no longer be.

Examples, you may have content littered throughout your site like so

"Happy Christmas from all of our team"

"Please contact Jenny Smith for the latest information"

"The retail price is £39.99"

All of this is likely to be no longer required as it's April, Jenny left and the price is now £49.99.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.