1 Database for multiple WordPress themes

If you’re going to be visiting clients to show them your templates I would personally recommend installing WordPress on your local computer by following the instructions on the below page. https://managewp.com/how-to-create-a-local-wordpress-website-in-windows-with-xampp Once you have installed WordPress locally you could make a backup of your live WordPress site and restore it on your local computer by … Read more

Automatic switch to backup database on fail

HyperDB is awesome. You shouldn’t worry about its dev date (which by the way, its being done by Automattic – the team behind WordPress). HyperDB has some bigger advantages like spreading read/writes across servers and splitting them and its mostly used for such purposes (bigger scales). In your case, I would go for a VIP … Read more

data (html) migration to posts

So I solved my problem using the wp_insert_post($array) but before I used wp_insert_post() I had to remove a filter as shown below. remove_filter(‘content_save_pre’, ‘wp_filter_post_kses’); remove_filter(‘content_filtered_save_pre’, ‘wp_filter_post_kses’); // Add code to insert post(s) with html elements here $post = array( ‘post_content’ => ‘<a href=”#” title=”text”>text</a> some random text’, ); wp_insert_post($post); // Then add the filters back … Read more