Archives for: "December 2016, 20"
Dec 20, 2016 WordPress Tips
You can access the database via WordPress. You can use any raw SQL too. That is quite easy. You only need to call a global object; global $wpdb; For the raw SQL, you can use query method: $wpdb->query( " UPDATE $wpdb->posts SET post_parent = 10 WHERE ID…