Show Single Latest Post on Static (Home) Page

  • Author
    Posts
  • #3081427

    tmattoneill
    Member

    I would like to have my homepage show ONLY the LATEST post from the blog (/archives).

    In other words:

    • Blog is published to /archive
    • Home is an empty static page

    I want all blog posts to go to /archive (blog) but always have the LATEST blog post be the only content on the home page (a static page).

    There must be a super easy straight forward way to do this but I can’t find it anywhere.

    The blog I need help with is artnow-artthen.co.uk.

    #3081643

    cherylringer
    Member

    I’m trying to do the same! I hope someone has an answer to your question. good luck!

    #3081644

    tmattoneill
    Member

    Thanks. I have no idea why this isn’t the most obvious / intuitive / trivial thing ever.

    #3081671

    kathrynwp
    Staff

    Looks like you’ve already done what I was going to suggest, which is:

    In the Customizer‘s Homepage Settings panel, set:

    – A page called Home as your static front page
    – A page called Blog or Archive as your posts page

    On the static homepage, use the Display Posts shortcode to display the most recent post, for example:

    [display-posts posts_per_page="1"]

    If either of you needs further help, just let me know.

    #3081672

    tmattoneill
    Member

    Cheers. Trying to get it to appear as a post not a bullet (ul). Any thoughts on how to get it to appear normally? I tried the wrapper=“h1” property of the display-posts short code but had no effect.

    #3081674

    kathrynwp
    Staff

    Try adding the wrapper="div" attribute to your shortcode. Let me know how it goes!

The topic ‘Show Single Latest Post on Static (Home) Page’ is closed to new replies.