• Resolved webmasterpcx

    (@camille_anjouweb)


    Hello,

    I am creating events via a script and eo functions such as eo_insert_event, and I would like to add a featured image/thumbnail to the event post, but I cannot find any functions to do that. Still, the WordPress set_post_thumbnail function does not seem to work with it…

    Does anyone know anything about that ?

    Thanks,

    https://www.ads-software.com/plugins/event-organiser/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    WordPress’ default function should work. The event ID returned by eo_insert_event() is the post ID (events are post type ‘event’).

    Thread Starter webmasterpcx

    (@camille_anjouweb)

    Well, that’s odd.
    Pictures I want to set as thumbnails are post attachments, maybe I got confused with attachment ID and post ID…
    I’m going to try again.
    Thank you =)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add a thumbnail to an event with php’ is closed to new replies.