Homepage Display

  • Author
    Posts
  • #150327

    diogenes5
    Member

    How can I make the Homepage display the most recent post rather than a list of posts?

    The blog I need help with is diogeneslantern.co.uk.

    #150333

    binarymoon
    Theme Author

    Hi there – thanks for the message.

    Unfortunately that’s not something the theme was designed to do.

    The way I would do this is to set a static homepage as described here:
    https://en.support.wordpress.com/pages/front-page/

    Then, for the content of the homepage use the following shortcode:
    [display-posts posts_per_page="1" include_content="true" wrapper="div"]

    You can see the full list of parameters here:
    https://en.support.wordpress.com/display-posts-shortcode/#display-arguments

    You may need some custom css to tweak the size of the post title/ other things. You can also add a button after the shortcode that links to the archives so that readers can see the other posts on offer.

    Thanks – Ben

The topic ‘Homepage Display’ is closed to new replies.