-
-
Save haicu/a2679a2f778bf14b29ddf1f89c04adc6 to your computer and use it in GitHub Desktop.
TTB Square featured image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// code to add to functions.php | |
add_image_size( 'square-size', 380, 380, true ); | |
//adapted code for the news listing | |
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('square-size'); ?></a> | |
//please note: use the plugin regenerate thumbnails to resize existing images |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment