(wordpress version 3.4)
Ok,
Hereâs what Iâm trying to do:
Create a page called âCustom Fieldsâ that will never actually be seen by a user. Itâs simply for the client to add in custom fields. He will constantly be needing to change these custom fields on a weekly/monthly basis.
I need these custom fields to be displayed inside the header, footer, or sidebars so that they will be universal on all pages.
Do you know the proper way to tweak the code so I can achieve this?
Thanks!
Since Custom-Fields are meant on a per-post scope, I would recommend using the Options meta-data store instead. This way you can change the values from the Admin panel which is mush more convenient and consistent.
This is a tutorial showing how you can add this functionality to WP
With Cleric’s code I got an error when saving the variable. It saved it allright but there was this error about code being deprecated.
Then I found this page Handling Plugins Options in WordPress 2.8 with register_setting() and it’s now working perfectly in WP version 3.5.