Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Automattic

    (@automattic)

    Untested, but something like wp_get_attachment_url( get_post_thumbnail_id() ) should work (as long as you’re within The Loop, so that the current “post” is the event you’re dealing with).

    Thread Starter Daniel Proczko

    (@diggler)

    That won’t work, because the image isn’t in the wordpress database. The Eventbrite API plugin inserts the image from eventbrite into the thumbnail function.

    So, I was wondering is there was a function that grabbed only the image url from the thumbnail function.

    Thanks.

    Plugin Author Automattic

    (@automattic)

    Hm, you’re right, that was silly of me. (No, there isn’t a specific function for that purpose.)

    The Eventbrite_Event object (which is what $post is in the Loop) has a logo_url property, so you should be able to just use $post->logo_url within the Loop. You can also look at filtering on post_thumbnail_html the same way the plugin does. Hope this helps.

    Thread Starter Daniel Proczko

    (@diggler)

    The property worked perfectly. Thanks. I’m still getting my bearings on finding those. You can see the result here: https://buildittogether.co/events/meetups-schedule/

    I used the property to be able to link it to the event rite page instead of creating a generated single page with in the site. (had to as the single pages weren’t working, and I can’t figure out why. Something most likely to do with multisite.)

    Thanks!!!

    Thread Starter Daniel Proczko

    (@diggler)

    This is solved.

    Hi Dan,
    can you share your eventbrite-index.php Template? Looks great!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Grab only the image url of eventbrite event?’ is closed to new replies.