Adding thumbnails to event widget

Home Forums Calendar Products Events Calendar PRO Adding thumbnails to event widget

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #626225
    barronlau
    Participant

    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?

    #639720
    Barry
    Member

    Hi!

    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 🙂

    Does that help?

    #723468
    Barry
    Member

    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!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Adding thumbnails to event widget’ is closed to new replies.