Use Custom Database with Custom Post Type

What I understand is you want to update records/table to another database from wordpress…. well you can achieve this in wordpress 3.1> using

$newwpdb = new wpdb("mysqluser","mysqlpassword","mysqldbname","mysqlhost");

Then using $newwpdb you can access table from new database and perform all operation on it like edit/delete update/insert… same as $wpdb do wordpress….

Hope that helps or you may post your code for more understanding….

Leave a Comment