Skip to content

Retrieving event custom fields #37

Closed
@ganeshcodes

Description

@ganeshcodes

Hi All,
I am using EE4 for creating events. I have installed Event Espresso - REST API (EE4.x+) and WP REST API plugins for fetching the events data. I have created two custom fields (presenters, presenter_details).

URL : /wp-json/ee/v4.6/events?include=Venue.,Datetime.,Extra_Meta.*

I am getting the events details along with Venues and Datetimes but extra_metas is null. I expected those custom fields to come as a part of extra metas. Then I tried hitting the extra_meta link directly, but I received 403. Below are the details,

URL : /wp-json/ee/v4.6/events/32/extra_metas
Headers : Authorization (base64 encoding of username:password)
Response : [{"code":"json_extra_metas_cannot_list","message":"Sorry, you are not allowed to list extra_metas related to Extra_Meta. Missing permissions: manage_options"}]

I am getting 403 for above even for admin credentials. This issue is due to the basic authentication failing or am I missing something else? I have installed and activated JSON Basic Authentication plugin for basic auth support for wp-json api. Any help would be highly appreciated. Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions