Archives for: "December 2016, 20"
The Database Object in WordPress
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… more »
Tags: wordpress