• I’m new to wordpress. I’m building a site that’s mostly composed of static pages. However, I would like my client to update certain areas without having to pluck through my HTML. So let’s say I have three small content columns on the landing page that give a summary of a few different pages. Is there any way to set the content in some sort of custom field which would be stored in a variable of some sort?

    like:

    <div id="myBlurb">
        <h2><?php echo $blurb; ?></h2>
        <p><?php echo $stuff; ?></p>
    </div>

    So the ‘blurb’ and ‘stuff’ variables would come from a custom field in the wordpress admin?

Viewing 4 replies - 1 through 4 (of 4 total)
  • This kind of content would be better in a post or hidden sub-Page that could then be called into the landing page using get_posts().

    Thread Starter flyagaricus

    (@flyagaricus)

    seems crazy that WordPress doesn’t have a way to do this. A hidden page or post only has a title and a body to play with. I wonder if a custom widget might be the best bet?

    A hidden page or post only has a title and a body to play with.

    What else do you want? If you used posts, you could have multiple posts (one per blurb) – all filed under a pre-agreed category. Far easier for your client to update than a custom field.

    Thread Starter flyagaricus

    (@flyagaricus)

    Ok, maybe this’ll do the job…

    What code do i use to place the content from each post on the page – based on ID?…

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘adding (non-blog) dynamic content’ is closed to new replies.