skip to Main Content

Displaying a custom image size in wordpress

In functions.php i have, function university_features() { add_theme_support('title-tag'); add_theme_support('post-thumbnails'); add_image_size('professorLandscape', 400, 260, true); add_image_size('professorPortrait', 480, 650, true); add_image_size('pageBanner', 1500, 350, true); } add_action('after_setup_theme', 'university_features'); In single-professor.php, I have: <div class="one-third"> <?php the_post_thumbnail('professorPotrait'); ?> </div> But the image size doesn't change.…

VIEW QUESTION
Back To Top
Search