Hot answers tagged

2

One of the hard requirements of WordPress theme is presence of style.css file with a header. It doesn't go beyond file being present or even used at all, it can be otherwise empty. The CSS itself has no requirements on WP side and falls under generic web development.


2

THE SHORT Export sudo mysqldump -u root -pPASSWORD DBNAME > filename.sql Import wp db import filename.sql THE LONG So this turns out to be very painless. The server dump is exactly what WP-CLI needs to import. REMOTE sudo mkdir backup Make a directory for the file. sudo chown -f -R ec2-user:group backup Set permissions to the directory ...


1

I have no privileges to comment so just providing links here in answer, may this helps you: Tutorial part 1 Tutorial Part 2 Similar question: How to Create Export/Import Functionality for Plugin Thanks!


1

The WP importer should do the job for you. You may need to install it first. Backup. Backup. Backup. Then, from your current single site: Tools > Export > All Content > Download Then from the new location on your multi-site, Tools > Import > locate the export file and adjust options to your needs. Note - you will need to still take care of settings ...


1

Ok, the first-thing I wanted to double-check is that rather than make any modifications to parent PHP, you simply create one with a duplicate name in the child directory which completely overrides the parent file? No. You don't create a theme with the same name. You create a theme with whatever name you choose and provide the appropriate header in ...


1

You can try my favourite import/export plugin WP All Import and WP All Export http://www.wpallimport.com / http://www.wpallimport.com/export/ Or User Meta Pro http://user-meta.com/documentation/export-import/ You can use WP-CLI for an import too... wp user import-csv /path/to/users.csv http://wp-cli.org/commands/user/import-csv/


1

rawurldecode fixes the issue. $src = media_sideload_image(rawurldecode($url), $post_id, $desc, $return);


1

I know this is an old ticket, but data importing is an ongoing challenge for users, I am sure! I've recently started using WP All Import, and I came across the same problem with ACF fields. Luckily, they came out with an extension for the plugin for exactly this problem: http://www.wpallimport.com/add-ons/ WP All Import ACF Add-On should handle this ...


1

You can use wp_create_user and pass necessary information like $username, $password, $email , where $email is optional. If user created successfully it will return ID of newly created user, other wise will return error object. Then update user's other information using update_user_meta.


1

When I had developed a theme, and I was trying to automate the import process by tweaking wordpress-importer plugin. I had faced the same issue. When importing server processes numerous DB operations at same time, that's why it's not able to respond and it results in 500 Internal server error. Try 1 : To fix the issue, you have to import one by one. ...


1

Sorted it out myself. The problem was, server was very slow to process the import. The process was happening behind the scene but server actually went down. When server was up, I could see all the content on the other site.


1

Your logic and the steps you plan on following look good to me. This is more or less exactly how I would handle the issue. However when you import the XML file from sub.example.com into example.com, you'll want to check the links to the media files within the newly-imported posts. I believe they are still going to be referencing the sub.example.com URL. If ...


1

I had a very similar problem when I moved a WordPress Blog from a single WordPress installation to a Multisite installation with different domain names but same IP. I found out that the problem is the wp_http_validate_url function which drops the URL if the source IP is the same as the destination IP. You can add a filter wp_http_validate_url to prevent this ...



Only top voted, non community-wiki answers of a minimum length are eligible