Support » How-To and Troubleshooting » Display posts on index.php as grid

Display posts on index.php as grid

  • I’m wanting to know how to display posts on the index page as a grid. An example can be found on the tumblr theme ‘Cargo’ here:

    Tumblr Cargo Theme

    Any help much appreciated.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Each post has to have an image, or a custom field that defines a thumbnail URL.

    I’d modify your CSS then and make each listing:


    For perfection, I’d add a counter inside the home.php loop so you know when you’re on the last thumbnail and then modify that listings CSS by either adding a new class with PHP or modifying the markup directly with a style="margin-right:0;"

    Cheers… will try this out.

    Many thanks 🙂

    Hi, talking about that cargo theme, I’m needing to display in the single page all published posts too. Something like making the single page to be a front page with the single post content displayed. Seems to be something about the query_posts stuff, but can’t figure out how to do this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display posts on index.php as grid’ is closed to new replies.
Skip to toolbar