Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
1  
You can store options for the site using the Options API. –  Pat J Jul 2 '13 at 16:05
add comment

2 Answers

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 and blankspaces Jul 2 '13 at 16:16
add comment

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 and blankspaces Jul 2 '13 at 16:12
add comment

Your Answer

 
discard

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.