WordPress import not importing custom taxonomy

I've posted this already in the WP Support Forum hoping to have more luck here. I'm trying to import a custom post type from one blog to another. (126 posts in the custom post type). I've exported using WordPress' export function from WP version 3.3.2 and trying to import into 3.2.1. I can get all the posts to import into the correct custom post type, but none of my custom taxonomy or meta information is being imported in. In both …
Category: Web

WordPress: Export/Import Yoast meta title & description to custom taxonomy

I want to export the Yoast meta title & description from a custom taxonomy with the WP All Export. Unfortunately there is no direct way with the plugin to do that. There is an extra WP All Export addon for Yoast but it doesn't work for custom taxonomies. I tried to use a custom function in the export to get the title and description. But my function doesn't work either. Im not sure why. Here's my current function: function yoast_wpseo_title($value) …
Category: Web

Import download attachment from woocommerce product

I am doing a migration from a wordpress/woocommerce website, I've successfully export/import all the data except one thing : the download attachment file from my woocommerce product I'm using the wp-cli it's working fine for the normal media (all my page and blog article have their media files) but all my woocommerce files are uploaded in wp-content/uploads/year/month folder instead of : /wp-content/uploads/woocommerce_uploads/year/month I've looked in the XML the path is correct Is someone know how wordpress decides in which directory …
Category: Web

Permalinks stopped working after migration with WP all-in-one migration plugin

I've used a plugin called WP all-on-one migration to migrate my website. I've also saved the permalinks twice, as instructed after the importation. The default permalink setting works fine, but any other permalink setting results in a 404 error code (except for the home page). Plugin: https://wordpress.org/plugins/all-in-one-wp-migration/ Website: http://nieuw.ohmembercard.nl/ Already tried the following: 1. Saving the permalinks twice (as instructed after importing by the plugin) 2. Rename old .htaccess file, let the site automaticly create a new one
Category: Web

WordPress All-Import to ATUM Stock Management

When importing and creating/updating products in WooCommerce the fields used in and by ATUM Stock Management doesn't get updated. On the stockmanagementlabs forum one user posted a suggestion to be added to functions.php: add_action('pmxi_saved_post', 'post_saved', 10, 1); function post_saved($id) { // get custom field $purchase_price = get_post_meta($id, '_atum_purchase_price', true); // Insert the field into the database if(isset($purchase_price)){ $wpdb->update( "{$wpdb->prefix}atum_product_data", array( 'column1' => 'purchase_price', 'column2' => $purchase_price ), array( 'product_id' => $id ), array( '%s', '%d' ), array( '%d' ) ); …
Category: Web

Import data from file larger than 15 MB

I have my blog on wordpress.com, I want it to be moved on self hosted server. I have exported data from my wordpress.com blog to XML file, However, When I went to import the data to my self hosted wordpress installation it says file must not be greater than 15MB and my file is of 2257 MB How do I go to import such a large file?
Category: Web

Exporting Post type from one theme and importing it to another theme

I am stuck on an issue here. I have this one theme which has the post type called 'listing' and I have this new theme with the post type 'iwp_property' When I use the Wordpress Exporter/Importer tool and goto import the data, I get this error 'Invalid post type listing' My question is what would be the most efficient way to export and import with mapping...I am completely open to suggestions...
Category: Web

Move users and passwords from one wordpress site to another

I need to copy over Wordpress users with roles/passwords intact to a new install. I'd prefer not to copy the entire site (though if I have to I will.) Currently I only have the one main admin account on the new install. Some people have mentioned importing the old user and user-meta tables from the original database, but others have said this could cause problems.
Category: Web

Import Instagram post as Wordpress post

I've been searching a lot but haven't found one very simple thing: how to import a post created on Instagram and turn it into a Wordpress post, that is, copy one Instagram post (text + photo) and create a simple post on the Wordpress blog?
Category: Web

Importing demo data in Multisite

I have a multi-purpose theme, which allow to download complete demo site content/wordpress. Normally (www.example.com) it's perfect and run all demo request, last time i install a new wordpress multisite network and enabled as Network theme. Fatal error: Cannot use object of type WP_Error as array in /home1/user/public_html/example.com/wp-content/themes/mytheme/functions/importer/import.php on line 491 Line number 491 in import.php looks like this if( $response['response']['code'] == 401 ){ Here is complete block of php code from line number 489 to 511 <?php if( $test_error …
Category: Web

Import images remotly run through timeout error

Actually I delevop a plugin that uses several curl requests to get data from an external server. I've got the following code running and is working fine. The post and meta gets in But if I running the import_images() function for insert each post and multiple image I run into 504 Gateway Timeout and the images duplicates all images. My current PHP VERSION: 7.4, PHP Memory Limit: 512 MB /** * Get all vehicles. * * @return array */ public …
Category: Web

Importing CSV into database table not working?

global $wpdb; if (isset($_POST["import"])) { $fileName = $_FILES["file"]["tmp_name"]; if ($_FILES["file"]["size"] > 0) { $file = fopen($fileName, "r"); while (($column = fgetcsv($file, 10000, ",")) !== FALSE) { $table_name = 'sas' ; $wpdb->insert( $table_name, array( 'category' => '" . $column[0] . "', 'temple' => '" . $column[0] . "' ) ); } } } I want to import csv directly into the core wordpress database table 'sas' .The csv contains some records with the structure of the table i have created...But the …
Category: Web

Featured image error after importing blog posts

I exported blog posts to an xml file from a WordPress website and then imported them to another. I moved over all the images in their correct folders via FTP and then used a plugin to register them in the media gallery. They are in their correct months too. So, I have the blog posts, I have the images. I even ran a search and replace in the database to change all the domain names to the new one yet …
Category: Web

Wordpress Import (CLI) returns Error Establishing a database connection

I am trying to use the wp import cli in the terminal to import a large wxr file (200MB) from the old test server to new test server. I can login to wp-admin using the admin account and mysql cli mysql -u user -p so I know that my db information is correct. But when I use wp import command, returns db error Error Establishing a database connection. Is there any part that I am missing? I am checking other …
Category: Web

Import Recent Posts Only and Ignore old ones if exist

I'm using MailChimp Campaigns Plugin where it imports all Mailchimp campaigns as a custom post type on the website. The app works perfectly however I'm modifying the process to import recent posts only to avoid any post modification to be overwritten. The import() function works as following: /** * Actually do the import of Mailchimp campaigns. */ public function import() { if ($this->is_error) { return; } $x = 0; $campaigns = $this->getCampaigns(); foreach ($campaigns as $i => $campaign) { try …
Category: Web

How do you do your big exports / imports?

I have a big client (50k orders, 70k customers), I'm working today on the migration of his site on a new version of WordPress on a new server. I need to export and import the products / customers / orders on the new WordPress without any ID modification. Problem, after working on the site I realize that the import is impossible because various customer and order IDs are already taken. How do you do exports / imports like this? Do …
Category: Web

Wordpress Media Import, images not in Media Library

I have performed two imports using the WP Importer plugin, one of a custom post type and the 2nd of the Media Library. Both imports appear to work, on fact a second attempt to import the Media Library gives "File Exists" messages. In the individual post the featured image is showing, with thumbnail, with the correct, updated URL. In cPanel, all the images are in place with correct folder structure and thumbnails But in the media library, there is nothing …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.