WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Custom WP Image Size Instead of TimThumb? (9 posts)

  1. coreymcollins
    Member
    Posted 11 months ago #

    On this page: http://wp-events-plugin.com/tutorials/caching-thumbnails-generated-by-timthumb/

    You detail how to select WP thumbs instead of using TimThumb which is a big help. I'm curious as to how we choose a specific thumb size with this option selected? I still have the image size set in _EVENTIMAGE, but it's just displaying a 150x150 thumb for every event. Is there a limitation that we can choose to use WP thumbs but it only displays at the 150x150 size, or is there a way to specify an image size we declare in our functions file via add_image_size?

    http://wordpress.org/extend/plugins/events-manager/

  2. caimin_nwl
    NetWebLogic Support
    Posted 11 months ago #

    Sounds like you're using the default thumbnail size for WordPress. You can change the size from the Settings > Media page.

  3. coreymcollins
    Member
    Posted 11 months ago #

    Shouldn't there be a way to set this in the plugin itself, though? What if someone doesn't want to change the default size for thumbs site-wide, just for the uses of the plugin?

  4. caimin_nwl
    NetWebLogic Support
    Posted 11 months ago #

    Then you could use the #_EVENTIMAGE{x,y} placeholder - where x and y are the width and height.

  5. coreymcollins
    Member
    Posted 11 months ago #

    The entire point is to not use timthumb at all. Using the placeholder with the width and height in addition to using using WP images provides a 150x150 thumb, as I stated above.

    I want to NOT use timthumb, use standard WP thumbs and display the image in a size I choose. It seems like this should be a regular function of the plugin.

  6. angelo
    NetWebLogic Support
    Posted 11 months ago #

    hi,

    try Events > Settings > General > Performance Optimization > Use WordPress thumbnails =Yes

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 11 months ago #

    Not sure I'm getting you now. You are trying to use WP Thumbnails, and you know the thumbnail size you want, right? In that case you just need to define that in your placeholder.

    If you choose something not exactly as your WP sizes, then WP itself chooses the closest picture and resizes it using img tag width/height attributes. We just pass on the dimensions to the wp function that generates the img html tag when in that mode.

  8. coreymcollins
    Member
    Posted 11 months ago #

    Hi Marcus - so let's say I use add_image_size to add a new thumb size called "events_thumb".

    Are you saying I can just use #_EVENTIMAGE{ 'events_thumb' } to display a thumb in that size? I wasn't aware that would be the case, as the doc/help page only mentions using 'x,y' for width and height.

    To recap:
    - I want to NOT use TimThumb.
    - I want to use WP-generated images, so I chose the "use WP thumbs" option in the plugin settings
    - I get the 150x150 thumb, which shows me that the plugin is now using WP-generated thumbs, but I want to use my own custom thumbnail size as mentioned above

  9. angelo
    NetWebLogic Support
    Posted 11 months ago #

    hi,

    you can modify the placeholder to do that - http://wp-events-plugin.com/tutorials/modifying-placeholder-default-information/

    *changing location to event

Reply

You must log in to post.

About this Plugin

About this Topic