Title: update_post_meta in admin folder
Last modified: August 21, 2016

---

# update_post_meta in admin folder

 *  [skanthemore](https://wordpress.org/support/users/skanthemore/)
 * (@skanthemore)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/update_post_meta-in-admin-folder/)
 * I’m trying to update a custom_post field in admin aera,
 * I have a sigle page validate.php with this code,
 * $post_id=$_GET[“idreserva”];
    `update_post_meta($post_id,'wpcf-status','1');`
 * If trye with in this way
    `update_post_meta($post_id,'wpcf-status','1');`
 * But it dosen’t work, Is the first time I work inside admin folder, may be is 
   not a good way?
 * any idea why update_post_meta is not working?
 * Thanks, Best regards

The topic ‘update_post_meta in admin folder’ is closed to new replies.

## Tags

 * [update_post_meta](https://wordpress.org/support/topic-tag/update_post_meta/)

 * 0 replies
 * 1 participant
 * Last reply from: [skanthemore](https://wordpress.org/support/users/skanthemore/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/update_post_meta-in-admin-folder/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
