Right now I have a p element in header.php containing the address and phone number my client wishes to use for contact info. How can I set this up so that it is editable through the WP admin area so that my client can easily change this in the future?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
How should I store global information such as a phone number so that it is editable through the CMS?
|
Store it in your theme options. Read the series of articles called The Complete Guide To The WordPress Settings API. Spare no effort to read it, especially 4th article about Theme Options. |
|||
|
|
I have written a plugin exactly for this case: Public Contact Data. Last update just yesterday. :) It can be extended easily by a filter Before that I have put these things into themes too. But managing that was awkward, especially updates for multiple themes using this code. Screenshot: Background shows the output in a theme, foreground the translated option fields.
|
|||||
|
