WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Problem with update_post_meta (5 posts)

  1. joschi81
    Member
    Posted 1 year ago #

    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. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Any suggestions? If not: could the error be outside this part of the code?

    Thanks for you help
    josch

  2. joschi81
    Member
    Posted 1 year ago #

    Another part of the (maybe relevant) code:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  3. joschi81
    Member
    Posted 1 year ago #

    OK, big mistake of a forum newbie. Here's the code in the pastebin:

    Creating custom post input fields

    Saving the post meta

    Any help or hint would be much appreciated!

    Regards
    josch

  4. joschi81
    Member
    Posted 1 year ago #

    Resolved. $action of wp_nonce_field and wp_verify_nonce wasn't the same.

  5. joschi81
    Member
    Posted 1 year ago #

    Ooops, dind't I mark this as resolved already?

    Josch

Topic Closed

This topic has been closed to new replies.

About this Topic