Title: Problem with update_post_meta
Last modified: August 20, 2016

---

# Problem with update_post_meta

 *  Resolved [winnewoerp](https://wordpress.org/support/users/joschi81/)
 * (@joschi81)
 * [14 years ago](https://wordpress.org/support/topic/problem-with-update_post_meta/)
 * Hi there,
 * I’m quite new to plugin scripting and I have a problem with the update_post_meta()
   function. Please have a look at this part of the code:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   The maximum number of lines of code that you can post in these forums is **ten
   lines**. Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * Any suggestions? If not: could the error be outside this part of the code?
 * Thanks for you help
    josch

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [winnewoerp](https://wordpress.org/support/users/joschi81/)
 * (@joschi81)
 * [14 years ago](https://wordpress.org/support/topic/problem-with-update_post_meta/#post-2766173)
 * Another part of the (maybe relevant) code:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   The maximum number of lines of code that you can post in these forums is **ten
   lines**. Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  Thread Starter [winnewoerp](https://wordpress.org/support/users/joschi81/)
 * (@joschi81)
 * [14 years ago](https://wordpress.org/support/topic/problem-with-update_post_meta/#post-2766374)
 * OK, big mistake of a forum newbie. Here’s the code in the pastebin:
 * [Creating custom post input fields](http://pastebin.com/ykSvVGeh)
 * [Saving the post meta](http://pastebin.com/6AH1y57i)
 * Any help or hint would be much appreciated!
 * Regards
    josch
 *  Thread Starter [winnewoerp](https://wordpress.org/support/users/joschi81/)
 * (@joschi81)
 * [14 years ago](https://wordpress.org/support/topic/problem-with-update_post_meta/#post-2766376)
 * Resolved. $action of wp_nonce_field and wp_verify_nonce wasn’t the same.
 *  Thread Starter [winnewoerp](https://wordpress.org/support/users/joschi81/)
 * (@joschi81)
 * [14 years ago](https://wordpress.org/support/topic/problem-with-update_post_meta/#post-2766523)
 * Ooops, dind’t I mark this as resolved already?
 * Josch

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with update_post_meta’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 4 replies
 * 1 participant
 * Last reply from: [winnewoerp](https://wordpress.org/support/users/joschi81/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/problem-with-update_post_meta/#post-2766523)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
