• I haven’t been able to find anything as yet in these forums, hence my post.

    I already know how to add dynamic content to my static homepage: https://moshublog.com/2007/09/10/static-frontpage-combined-with-dynamic-content/ details it well.

    But, what I would really like to do is to have the following:

    1. Static welcome text – editable through the backend on the page edit text box
    2. My latest post to show underneath that

    Ok, so 1 and 2 are fine.

    3. But now, I want to add a second, and possibly third static entry – editable through the backend on the page edit text box. Could be a photo, could be some more text etc

    In the backend, there is only one text box through which to enter information. If I enter 1 & 3 in the same box, 2 (my posts) come after. I want them second.

    I have main.php setup as my home page. I know it may have something to do with adding extra loops into main.php. Or even calling on a seperate page for each entry…….which could get messy.

    I guess I’m looking for the neatest way to do this, ideally being editable from the backend. Else, I’ll just go via the php file.

    thx

Viewing 2 replies - 1 through 2 (of 2 total)
  • Steve

    (@stevejohnson)

    You’ll either have to do multiple loops on the front page and use two separate pages with the latest post in between (3 loops) or…

    Write a plugin that gets your latest post and insert it into your welcome text via shortcode.

    Welcome text. Mutley, you snickering, floppy eared hound. When courage is needed, you’re never around. Those medals you wear on your moth-eaten chest should be there for bungling at which you are best. So, stop that pigeon, stop that pigeon, stop that pigeon, stop that pigeon, stop that pigeon, stop that pigeon, stop that pigeon. Howwww! Nab him, jab him, tab him, grab him, stop that pigeon now.

    [displaylatestpost]

    More welcome text. Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune. If you have a problem and no one else can help, and if you can find them, maybe you can hire the A-team.

    Please tell me how you go the static and teh dynamic content to work on one page? I have tried a million different ways and I either get all my pages listed as dynamic content ie posts or I only get the posts and no static content….

    I have followed the instructions in moshublog but it all comes out the same. I have tried making the pages in the Reading settings the same ie static home page and the same page as the post page… and I have tried seperatly still nothing… Please help

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Static & Dynamic content – multiple entries’ is closed to new replies.