WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Thumbnail preview of event image on events page and widget (7 posts)

  1. matt0581
    Member
    Posted 2 years ago #

    Hi there,
    I'm kind of new at all of this so I apologize if this is not a relevant question.
    I am creating a site for a travel agency and would like to be able to a small version of an event(trip)'s featured image to the description on the event page as well as in the upcoming events widget. I have been able to add the to the "Events" page, but am unsure of how to re-size it. Is there a way to do this so it automatically creates a thumb about 100 x 60px in the widget and about 250 x 150px on the event page?

    Thanks

  2. agelonwl
    Member
    Posted 2 years ago #

    try this one:

    global $EM_Event;
    $thumb = $EM_Event->image_url;
    print_thumbnail($thumb, true, $EM_Event->name, 188, 188, 'post-thumb');

    also you try browsing the EM tutorial particularly the templates

  3. matt0581
    Member
    Posted 2 years ago #

    Cool, will give that a shot.

    Thanks

  4. buddyrhev
    Member
    Posted 2 years ago #

    @matt0581 - i'm having a problem in displaying an image events, im not good at coding so can you give me a hand on this?..thanks :(

  5. agelonwl
    Member
    Posted 2 years ago #

    @buddyrhev, please try to browse the docs @ http://wp-events-plugin.com/ there's a lot of tutorial there which can help you out.

  6. buddyrhev
    Member
    Posted 2 years ago #

    thanks angelonwl :)

  7. the1path
    Member
    Posted 2 years ago #

    @matt, did you ever work this out. I added an image to the events page but want to add the same image to the widget but I cant find anything on the docs?

    Any help much appreciated

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic