• Resolved jdunneirl

    (@jdunneirl)


    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

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter jdunneirl

    (@jdunneirl)

    Hi Chip,

    Perhpas I am approaching this all wrong,

    maybe i should have all pages been called with includes?

    The content will be different on each page,

    So 8 pages

    and 5 sets of content on each page

    so 40 pieces of dynamic content

    Chip Bennett

    (@chipbennett)

    Again: a visual example would be terribly helpful.

    Thread Starter jdunneirl

    (@jdunneirl)

    maybe i should mention I am trying to use wordpress as a cms

    Chip Bennett

    (@chipbennett)

    I also use WordPress as a CMS. I have a heavily Page-driven website.

    Thread Starter jdunneirl

    (@jdunneirl)

    ok so for dynamic text on a page,

    lets say the intro text is dynamic ie held in wordpress

    and so is the advert text,

    do you store both in custom fields and access it with the get_post_meta or where exactly do you store each chunk of dynamic content for each section / page,

    Do you create a parent page and do some includes to drag from other wordpress pages or where exactly does the content come from so it can be edited

    Thanks,

    JOhn

    Chip Bennett

    (@chipbennett)

    Your best bet is probably to use Widgets.

    I would love to give you more specific help, but I need to have an idea of what kind of data you’ll be adding to the Page. There are many ways to skin a cat, I just need to have an idea of what kind of cat it is. ??

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Best Practice for Storing Data’ is closed to new replies.