Hi, I’ve successfully added the images to the event widget, however they are not thumbnails of the featured image, they are cropped into a square and cropped incorrectly. What can I do about that?
A lot can be done here with WordPress’s own built-in functions.
set_the_post_thumbnail_size() can be used to register new thumbnail/featured image sizes and dictate how they should be cropped. When you call get_the_post_thumbnail() you can specify the size you want to retrieve.
Careful use of both these functions – or some of their related functions – should get you on track here 🙂
Hi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
The topic ‘Adding thumbnails to event widget’ is closed to new replies.