Pages

wordpress update query

Tuesday, 21 January 2014

wordpress update query
 update the postmeta values in wordpress

$wpdb->query(
"UPDATE $wpdb->postmeta
SET meta_value = $total_ban_pric1
WHERE post_id = $post_id_totalcall
AND meta_key = '_sale_price'
");
 

Most Reading