I’m working on a new design for my current WordPress theme. On the old version our featured images were 125×80, and on the new version they are 650×300. Rather than go back through tons of posts and put the new featured image on, is there a way I can write an if statement so that if it sees the width on the featured image is 125px to not execute anything, but if it’s 650px to go ahead and do the_post_thumbnail();?
Share
you can use do some think like this
Hope it helps you.