views:

19

answers:

1

I want to update all field values (of a custom field) to a specific value. Would like to make it like a function and run it on a specific page or when button is clicked.

Possible?

A: 

Look here. A selection of custom keys and their values can be added to WordPress where as the custom keys and values a certain post is assigned is on a per post basis.

EDIT: Try this Custom Fields plugin to see if it helps you administering your fields.

hsatterwhite
Thanks. Can i make a function that resets all values (on a specific field) on all posts at the same time?
Mas Ugn
No this all seems to be post specific. Although I do remember there being a recent question regarding this and the person who answered did so with some quick SQL that did the job. Try digging a little further around here.Alternatively you could write a quick script to pull all post ID's, loop through each one, and update keys that way I suppose, but that still may not be the best method.
hsatterwhite
Ok, thanks for your time!
Mas Ugn
You're very welcome. Why I have not come up with a direct method of administering this through code please give the link I have posted in my answer a look to see if it will help you.
hsatterwhite