WordPress.org

Ready to get started?Download WordPress

Forums

How to set different thumbnails Size on each Categories (1 post)

  1. Dolomats0
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic