WordPress import error

thank you everyone who give their precious time to this question, lastly I solve this problem by myself… I think this error is because of memory limit. And I have no access to my php.ini file. So I created my own php.ini file with the following in it and added to my wp-admin folder. memory_limit … Read more

How to do one-off import or data migration?

Here’s what I would suggest – store your theme version in the database, compare it with your package version, if there’s a difference then load in your upgrade/install operations: define( ‘THEME_PREFIX_VERSION’, ‘X.X’ ); /** * Run upgrade/install. */ function theme_prefix_install() { require_once dirname( __file__ ) . ‘/install.php’; } if ( version_compare( get_option( ‘theme_prefix_version’ ), THEME_PREFIX_VERSION, … Read more

XML importing fails

The issue seems to may be with identical post_date on both a revision and a post. As the data is transferred into the DB, the revision goes first and when the post hits it, the DB sees it as already existing and so does not transfer the actual post. First check: Post type Date I’m … Read more

XML file import for attachments or featured images

I’m not aware of the way this could be done with a WXR file alone; after all attachments are posts, and if you’re importing images from elsewhere you’d need to do all the WordPress processing on them to make them into posts (from WordPress’s point of view). You may get inspired with how this plugin … Read more

Merge two wordpress sites

You can always divide the exported CSV file into parts and then import it on the other site. A better option will be if the other site has comparatively less data then you can export it and import it on the first site and then perform a database switch. I am not sure if any … Read more

Pull specific data from CSV

You can let the client to upload csv file. After upload you can read csv file with a php function (maybe fgetcsv) and put columns and rows to table (maybe with dataTables jQuery plugin). If you let the user to edit table, you can use these information for create a form After that you can … Read more

How to make bulk changes to wordpress posts

Why not change your site’s htaccess file to include this code RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] …changing to your domain name. This takes all port 80 requests (http) and rewrites them to https. Then, make sure that the wp_options table has the https URL for your site in both locations. There … Read more