If I need to manage a custom field under wordpress, but not from the admin area. In other words, I need that users modify the content of post custom fields from front end. What is the way to do so?

As instance, please to imagine Stackexchange.com as a wordpress site. Under this site, the the accept state is my post custom field. How can I make the front end user modify its value in WP database?

Please If you have another better approach to create accept system, using wordpress, it will be highly appreciated. But if my approach (using post custom field) is okey, please to guide me find documentation from web or codex to achieve my goal.

Thank you for your usual help.

  • This is a very broad question and similar things have been asked on this site. Search and see if you can get started, then edit the question to be more specific.
    – s_ha_dum
    Commented May 17, 2013 at 13:59

1 Answer 1


I assume that you want to update custom field.

You can use:

global $post;
update_post_meta($post->ID, $meta_key, $meta_value);


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.