Main page only 1 post

  • Author
    Posts
  • #1903178

    Hi,

    I am trying to figure out how to make the main page (page you see when you open the blog) of my wordpress to show only my latest post that I have done, but have the categories that they are categorized under show all the posts. I know I can limit it to 1 post on the settings, but then that does that for everything.

    Does anyone know how I can do that? Or a CSS code that I could use?

    Any help is appreciated!

    The blog I need help with is ruthiesommers.wordpress.com.

    #1903323

    gracejiyoung
    Member

    HI there,

    You should be able to do this if you edit CSS. Please go to Appearance > Customize > CSS and try adding this:

    .home article.post:not(:first-child) {
    	display: none;
    }

    That should just leave the latest post and remove the rest on the Home page.

    Let me know if you have any questions with this!

    #1903335

    There’s still a couple of older posts that show up.. do you know why this might be?

    #1903352

    gracejiyoung
    Member

    Ah I had to remove Infinite Scroll. Now it should be just the first post.

    Cheers!

The topic ‘Main page only 1 post’ is closed to new replies.