• I’m trying to access Events Manager Custom Post Type via WP REST API.
    I’ve enabled access by means of the “Rest API Controller” plugin.
    I can see all events in Postman ( wp-json/wp/v2/event/).
    I can change for instance the title and slug.
    But I can’t set any dates like for instance: _event_start_date
    Any idea what I’m doing wrong??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    I haven’t fully tried “Rest API Controller” plugin but you can try _event_start or _event_end

    Thread Starter mvisman

    (@mvisman)

    Hi Angelo,
    Rest API Controller plugin makes alle endpoints available and I can clearly see them in Postman (so for me it looks like they are made available).
    I’ll try _event_start and _event_end as well (I thought I already did that, but I’m not sure). Do I need to use a particular format to set these through the API?
    Regards
    Maarten

    Thread Starter mvisman

    (@mvisman)

    Hi Angelo,
    I tried that, but still no succes!
    Next I tried to post a new event: I can post a new event, but it only picks up title and content but not the _event_start and _event_end
    So maybe I’m sending an improper HTTP request?
    //wp-json/wp/v2/event/?Title=This is a new event&author=1&_event_start=2021-03-30 23:00:00&_event_end=2021-03-31 23:00:00&content=This is a test value

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Access Events via REST API’ is closed to new replies.