How/Where can I store some values such as a phone number or email address so I can use these values on any page in a my custom theme?
Example: I want to store a contact phone number that should be displayed in the header file of my theme but i dont want to hardcode it into the html. I would like to store it in a simerlar way custom values are stored but accessable from any theme page.
Use
get_optionandupdate_optionto store your settings in the WordPress database. Then you’ll be able to update the options using thewp-admin/options.phpscreen (you’ll have to type that in, there’s no menu option) or using one of these plugins:Later you can create custom option pages for greater control.
And don’t forget to use escaping functions when rendering the options in templates.