Loop limit by screen size (1 post)

  1. jannisbetschki
    Posted 3 years ago #


    So I'm currently working on a responsive theme. Now I'm looking for a way to limit the loop by screen-size (window size).

    For example: if the window is above 1919px (width) it should load 7 posts. But if the window is between 1919px and 1599px it should only load 6 posts.

    Is there any way to do this? I don't think it's possible to connect a php-statement with a CSS-@media-statement, is it?

    Any ideas on how to do this?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by jannisbetschki
  • This topic is not resolved
  • WordPress version: 3.5.1