Best Practice for Storing Data
-
Hi guys,
I am seeking some advice on the development of my first wordpress site,
The state of play at the moment is I have my home page and sub pages all done in hard coded html
I am not up against the age old of question of where to store stuff… I know the database duh… ??
<div class="secondary-a"> <h2 class="header-resources">Online advertsing</h2> <ul class="list-b"> <li>Banner</li> <li>Richmedia</li> <li>Interactives</li> <li>Videos</li> <li>Email marketing</li> </ul> </div>
Through out the site I have data such as news feeds and random chunks of text, and lists, my question is where do I store this, I am guessing they all go in the posts section and I create a category for each page in my site?
If this is correct, I assume that I get the values and use “the-loop” to display the data.
This all seems logical however, when examining a theme I downloaded it stored most of its values using,
update_option("ptthemes_frontpage_button_link2",'#')
and display it likewise?
So one totally confused newbie here ??
Any advice would be a great help
Thanks so much
John
- The topic ‘Best Practice for Storing Data’ is closed to new replies.