What CSS code can I use to limit posts per page to 3?

  • Author
  • #1211556


    I tried to change number of posts per page in “Reading” (from 5 to 3), but this isn’t working.

    Is there a CSS code that I can use to override? And change to have the home page show 3 posts only? Not 5?

    Thank you!


    That’s not a function that can be altered with CSS editing.


    Does the Custom Design upgrade let me edit HTML?
    No. The Custom Design upgrade allows you to edit fonts and CSS only. You can change the appearance of a theme, but not its HTML markup, PHP code, or content. … http://en.support.wordpress.com/custom-design/#frequently-asked-questions



    Okay, thank you!

    Any idea as to why my settings in “Reading” are not working?


    No so I tagged this thread for a Staff follow-up. Please subscribe to it so you are notified when they respond.



    Thank you very much!



    Have you disabled Infinite Scroll already?



    Howdy! It looks as though you’ve recently switched themes, but I’m guessing @raincoaster is on the right track — to display only 3 posts, you need to ensure the “Scroll infinitely” option is disabled (also under Settings -> Reading), otherwise most themes will display 7 posts regardless of the posts per page setting. I hope this clears things up!



    Hi, thank you for writing back.
    Yes, “Scroll infinitely” is disabled, the Splendio theme doesn’t allow it anyway.
    I am able to display as many posts as I’d like, but as soon as enter a number lower than 5, it doesn’t display that specified number of posts, just keeps it at 5.

    Any suggestions?

    Thank you.


    Sounds like you might have set some of your posts as sticky, and those will get stuck to the top of the posts lists regardless of other settings. Check to see if some of your posts are sticky posts:

The topic ‘What CSS code can I use to limit posts per page to 3?’ is closed to new replies.