skip to Main Content

WordPress thumbnail size change with a class

I'm inserting images like this for a list of posts in wordpress: <div> <a href="<?php the_permalink(); ?>" alt="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail('medium'); ?> </a> </div> What I want that if has a class 'full' it inserts 'large' size post thumbnail…

VIEW QUESTION
Back To Top
Search