• Resolved maning84

    (@maning84)


    Hi to all good people of wordpress,

    I have a little problem in my wordpress site. The problem is, I want to have different thumbnail size for each category page. I have three category pages and needs to look different by having different thumbnails for every post. How can I do that?

    here’s the link to my site – maning.0fees.net

    kind regards,
    Maning

Viewing 3 replies - 1 through 3 (of 3 total)
  • The simplest solution would be to add in a different body class for each category page (ie. if category A, body class is category-a), and also add a class to the thumbnail img (for example, thumbnail).

    Then, you could set the width and height for the thumbnail image on the category-a page like this:

    .category-a img.thumbnail {width:200px;height:200px;}

    Cheers,
    Eric

    Thread Starter maning84

    (@maning84)

    thanks for the idea, but how will I integrate that to my code…sorry im a total noob with this. Here’s my code:

    <?php query_posts(‘cat=13&showposts=20’); ?>
    <?php while (have_posts()) : the_post(); ?>
    <ul class=”post_cont” id=”post-<?php the_ID(); ?>”>

    First of all, upgrade to WordPress 2.9. It looks like you’re still on WordPress 2.8.2, and if you upgrade to 2.9 you’ll be able to use the new built in post thumbnail feature.

    Instructions on how to use that are here: https://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Different Thumbnail size for different categories.’ is closed to new replies.