• Hello,

    I want to show a variable amount of posts depending on the browser height. Let me give you an example:

    If my browser height is bigger than, for example, 700px I use “query_posts(“showposts=12)”
    But if my browser height is smaller than 700px I want to use “query_posts(“showposts=9)”.

    Does anyone has a clue to do so?

    The reason I want to get a variable amount of posts is because I’m creating a single page website and I want to use as much window height as possible, without using a scrollbar.

    I hope someone can help me with this problem.

    Greetings

  • The topic ‘Show variable amount of posts by browser height’ is closed to new replies.