• I’m trying to build a portfolio-website.
    And instead of having a blog, use categories to organize the different posts

    I want each category to have a different amount of posts per page. And look as a grid.
    So 4×4 and 3×3 etc images. But how do I get these posts in a grid.

    I think I either need an extra div to surround them, or maybe a div per post to tell the post which way to behave?
    And what part of the loop-code should be in the div?

    I started out with Thematic, but thought that to be to advanced for me, now I’m working with Twentyeleven.

Viewing 4 replies - 1 through 4 (of 4 total)
  • A twenty eleven child theme we hope?

    I have just completed a series of YouTube videos on using the post class for setting out category posts, the child theme in the video is downloadable, if you are on Windows the InstantWP environment can also be downloaded, this is already loaded with the theme.

    The columns example two over three will be a good starting place for you.

    HTH

    David

    Thread Starter hank3

    (@hank3)

    A childtheme indeed 😉

    Thanks a lot for your quick response, I’m gonna watch your videos and will let you know whether I succeeded.

    Marijn

    Thread Starter hank3

    (@hank3)

    Hello David,

    You’ve been of tremendous help. For example I’d never heard of post classes before 😉 But I’m really new here.

    And I’m still wondering, in which page do you call for the different template parts.

    In your index.php you call for
    get_template_part( ‘content’, ‘switch’ );
    or should I use the original code instead?
    get_template_part( ‘content’, get_post_format() );

    Or does WP recognize the different template parts as such, and can I choose one by creating/adjusting a new catergory?

    Marijn

    Thread Starter hank3

    (@hank3)

    I’m sorry, I found it.
    The category page… obviously 😉

    Marijn

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to create category grids’ is closed to new replies.