WordPress.org

Support

Support » How-To and Troubleshooting » How to set different thumbnails Size on each Categories

How to set different thumbnails Size on each Categories

  • Dolomats0

    @dolomats0

    Hello

    After long seach to find out How to get different thumbnails Size on
    each Categories i wanted share my result with you

    her is How to get different thumbnails Size on each Categories

    <?php if ( function_exists('has_post_thumbnail') && has_post_thumbnail() && in_category( array('97') ) ) { the_post_thumbnail_and_caption(array(450,350), array('class' => 'alignleft post_thumbnail')); }
    
    						 else { the_post_thumbnail_and_caption(array(440,160), array('class' => 'alignleft post_thumbnail')); }
    
    								  ?>

    The Numbere 97 is the Id of the category wher u wanna custumize the
    thumbnails size

    Good Luck

  • The topic ‘How to set different thumbnails Size on each Categories’ is closed to new replies.
Skip to toolbar