• Trying to get a simple, sales-page lookin’ static front page on WP to have a DIV box that only shows the latest post. Going to be somewhat of a “Tip of the Week” box.. not your traditional blog sidebar. Very simple.

    The site is here: https://www.daveandfred.com

    What code should I put in this box? (the text in there now is static, just to show what I’m looking for.)

    Many thanks from a wannabe programmer.

    Dave

Viewing 3 replies - 1 through 3 (of 3 total)
  • try this: adding a mini loop to static front page.

    hope this helps!

    Thread Starter hamilton33

    (@hamilton33)

    Meko…. thanks for replying. And please brace for this newbie question:

    Do I add this code to the PHP template- or the static page HTML?

    It was in the page html that I created the div box.. does that sound right?

    thanks again…

    I’m not sure if you’re using a template file you edited within WordPress or if you’re using a file outside of wp, but either way, adding the code between the <div> tags should work…

    I just looked at your site again and it looks like you might have figured it out? or is that still the text you added as filler?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding a “Latest Post” Box to a Static Page’ is closed to new replies.