• Hi,

    I need to work offline on an exixsting website, so I tried to export it and import it in wordpress on my pc. How can I import everything and not only posts, pics…? I mean, also the theme and his settings for example? Cause it is not my website and it’s impossible to do manually again everything. I tried the Importer plug-in, so I imported an XML file, but it is only for contents, not the “surroundings things”.

    Thanks,

    alis

Viewing 4 replies - 1 through 4 (of 4 total)
  • To import everything, you need to take the backup of your existing website. You can use BackUpWordpress plugin for that:

    https://ww.wp.xz.cn/plugins/backupwordpress/

    After installing this plugin, you can follow these steps:

    1. In dashboard, go to Tools -> Backups. Here you will find the setting option. Select “Both Database and File” option. And in “schedule“, select “Manual” option.

    2. Take a backup and download it.

    3. Unzip the backup zip folder and place it on your local server and rename it.

    4. Create a database on local server and upload the .sql file from the unzip folder.

    5.Look for wp_options table after you are done with database import. Change site_url and home_url.

    You can read the below link to know about home and site_url

    http://wordpress.stackexchange.com/questions/20294/whats-the-difference-between-home-url-and-site-url

    6. Look for the wp-config.php file on the root of the unzipped folder. Change database name, username, password, and host name.

    Post this, you should have a working site on your localhost, and you may login using existing site credentials.

    Thread Starter alisnilreb

    (@alisnilreb)

    Thanks for the answer and sorry for the delay!
    Everything worked but I have this error “Error establishing a database connection” but in the wp-config.php everything is correct so I can’t understand what I did wrong. Do you have an idea?
    Actually for the pt.5 you worte, I found the site_url in the options table but not the home_url, so I don’t know where to change it.

    Daniel Kanchev

    (@danielkanchev)

    SiteGround Representative

    If you’re sure that the MySQL settings are correct then you’ve most probably recreated the following bug:

    https://core.trac.ww.wp.xz.cn/ticket/28273

    The solution is to update the “siteurl” and “home” in the database table “wp_options”.

    You can also define the WP_SITEURL and WP_HOME in the wp-config.php file as per the instructions here:

    http://codex.ww.wp.xz.cn/Editing_wp-config.php#Blog_address_.28URL.29

    http://codex.ww.wp.xz.cn/Editing_wp-config.php#WordPress_address_.28URL.29

    also having issues import theme i bought from another site to my wordpress theme locally. i mean offline

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Import issue’ is closed to new replies.