Forums

[resolved] Most recent post on homepage with static content (4 posts)

  1. vetonabike
    Member
    Posted 11 months ago #

    I'm soon to be cycling from the UK to South Africa, and will be writing a blog as I go.
    I'd like the homepage to show some static content, then the most recent blog post underneath.
    I can think of two possible ways to do this:
    1- Inline Posts plugin - this plugin only gives you the option to have a particular post on the page, so every time a new one was posted the id would have to be updated to keep the most recent post on the homepage
    2- Something to do with creating a home.php as well as an index.php, and setting the home.php to only display one post? Any chance someone could walk me through how to do this - my knowledge of WordPress and php is pretty limited at the moment, and I'm still not sure how to integrate the static content and the loop.
    My site is here - http://www.vetonabike.co.uk - I'd like the most recent post to show beneath the map and photos.
    Example of what I'm looking for here - http://www.thebigafricacycle.com/
    Many thanks

  2. Dion Hulse (@dd32)
    WordPress Dev
    Posted 11 months ago #

    Not sure if it'll fit your theme, but have you considered using a Sticky Post? That'll take over position #1 on the default loop.. If you set it to have 1 posts per page, you'll have a Sticky post followed by the most recent post.

  3. vetonabike
    Member
    Posted 11 months ago #

    I've thought about doing this, but I still want to have the standard 10-post layout on the blog page (Updates-->News from the road) so I don't think it would work.

  4. vetonabike
    Member
    Posted 11 months ago #

    Solved using STB's Supercharge your Atahualpa template
    http://forum.bytesforall.com/showthread.php?t=11329

Reply

You must log in to post.

About this Topic