• Resolved OWMC

    (@olly-owmc)


    OK, so I’m working on a website for a company that sells glass panels. They don’t want to implement a shop as the products are somewhat bespoke and they prefer to take payment in other ways. So it’s just a catalogue.

    So a shop without a check out.

    I was thinking each product could be on its own post and then list all the posts as thumbnails on a page, in a sort of gallery/grid.

    Is this a good idea? Cause if it is I’ve had real trouble trying to find the plugins/code to arrange a grid.

Viewing 3 replies - 1 through 3 (of 3 total)
  • a grid in its simplest form is just a number of divs with fixed height and width and floated left, for instance.

    you need to programm the html structure into a template.

    Thread Starter OWMC

    (@olly-owmc)

    Right. I was kind of hoping there was a plugin for this sort of thing. Would i not have to call each individual post into each div of the grid? Sounds like too much manual code and i have no clue how to do this.

    There are plenty of image carousels like Featured Content Gallery which work with posts, I’m just surprised there isn’t something out there that provides the image-to-post links from a grid like NextGEN Gallery.

    Thread Starter OWMC

    (@olly-owmc)

    ah, simpler than ever!

    just put this in my template. this is actually popular posts but i’m a gonna change that to one of the categories of posts. it’s like one of those eureka moments when after 3 hours of googling and putting off going to the pub, when you feel like you’re on some heavy duty exito-toxins. know what i mean.

    <ul id="popularPosts">
    	<?php query_posts('showposts=5&orderby=comment_count');?>
    	<?php while ( have_posts() ) : the_post(); ?>
    	<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail(array(70,70)); ?></a>
    	<?php endwhile; // End the loop ?>
    </ul>

    case closed, on to the next episode.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘List category posts as thumbnails in a grid’ is closed to new replies.