Forum Replies Created
-
AuthorPosts
-
Bridgett RaffenbergParticipant
The response does return structured data, but it does not return what is expected. I would like to return all events for a specific day. If I follow the documentation and use per_page = x, this overrides end date so will fetch more events than on on the specific day.
Also, it appears the REST API goes after the UTC time and not the local time as I get events locally at 10:00pm but will show on next day since +4hrs is 2:00am next day.
When I click on the “day” view on the EC calendar, the page returns all of the events for the day (on the webpage).
I would like to return the same data with the wp-json response but have not determined the path to do this. Have tried
/wp-json/tribe/events/v1/events/?per_page=100&start_date=2017-09-30″;but I get 100 events whether or not they are on the events are on 2017-09-30.
Bridgett RaffenbergParticipantThank you, Casey. I removed it for now and it’s working without that text/code insertion. I am able to code so if I can alter the original form, please instruct for that if it’s not possible to work around it.
Bridgett RaffenbergParticipantDag – it stripped the html
Bridgett RaffenbergParticipantI think my issue is caused by the following code which I had inserted into my functions.php. The code below was copied from these forums as a solution used to add text to the top of the submit event page. I did add my own text after the . Since I removed the code from my functions.php, the form submits. I assume I have somthing off in the code below???
add_filter(‘tribe_events_community_form_before_template’, ‘my_custom_text’, 10, 2);
function my_custom_text() {
echo “We would love to post your next event. Fill out the form below to submit your event to our calendar staff. Submissions are reviewed prior to posting … so please be patient. Due to limited space we cannot post all events. All submissions require a valid e-mail address.”;
} -
AuthorPosts