Support » Fixing WordPress » No Featured cropping within post

  • Hello,

    in my theme (Fashionistas) the featured image in the category archives are cropped to 640×250 which is fine. BUT – on the post itself (in a certain category) it should not be cropped (I have to display book covers).

    Is there a way to disable featured image cropping for a certain category?

    Thanks for your help!

Viewing 1 replies (of 1 total)
  • Thread Starter Uta13

    (@uta13)

    In my single.php I have the following code:

    <?php while ( have_posts() ) : the_post(); ?>
    <?php the_post_thumbnail('thumb-featured'); ?>
    <?php get_template_part( 'content', 'single' ); ?>

    I want to exclude category 9 from showing the featured image. Is there a way to do that with conditional tags?

    Thank you for any help!

Viewing 1 replies (of 1 total)
  • The topic ‘No Featured cropping within post’ is closed to new replies.