WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a simple way to store additional information related to the whole website in a meta field?

For users, comments or posts, I learned how to use meta fields to store their additional related information, but sometimes I need to have growing arrays that contain additional information about the whole website.

Your clarifications are appreciated.

share|improve this question
You can store options for the site using the Options API. – Pat J Jul 2 '13 at 16:05
up vote 1 down vote accepted

You are talking about "Options". These are saved in the *_options table and can be stored and retrieved using a number of Core functions (straight from the Codex page above):

Add/Delete Option

Get/Update Option
share|improve this answer
Thank you very much S_HA_DUM for the detail material. – whiteletters in blankpapers Jul 2 '13 at 16:16

Custom fields should be used to store additional details assigned to posts/pages.

You should use Options API to store global options.

You should use user meta to store additional user details.

You can also read this: Best way to present options for home page in admin?

share|improve this answer
You and the comment owner are experts pointing me to Options API, so this is what I will use. Thank you very much. – whiteletters in blankpapers Jul 2 '13 at 16:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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