Tag Info

New answers tagged

0

Import the database on the new server. When your domain name or URLs change there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display. If you do a search and replace on your entire database to change the URLs, ...


0

Run A Query to Delete All Staging Posts before Importing From Dev Because menus and pages are custom post types, this will update all posts, pages, and menus to match your dev site. Delete all posts in the staging server by running a database query. Note that the code requires setting a userid. modify it if there are more users or run it more than once. ...


0

In WooCommerce, the product variants are children of the actual product. So perhaps just check if the $product_id you're on is a child, and if so get the title of the parent. Untested code: // Check if product has parent if($product->post_parent){ $parents = get_post_ancestors( $product->ID ); /* Get the top Level page->ID count base 1, ...


1

The reason copying those messed up your site was probably because of id mismatches. That is, posts with the ids of the stuff you're importing already exists. Regardless, since woocommerce stores orders as a custom post type, your safest bet here is probably the built in wordpress post import/export tool. 1. In the wordpress backend for the old site ...



Top 50 recent answers are included