• Hello,

    I am using this plugin https://en-gb.wordpress.org/plugins/the-events-calendar/ to manage events.

    I am using the api to pull events into my app:

    http://wordpress.rguc.co.uk/index.php/wp-json/tribe/events/v1/events

    However, the data is not quite what I need, rather that rehash the json on the frontend, can I change the format in the wordpress backend somehow?

    I need the json to look like this:

    {{
                            "2012-05-08(startdate)": {
                                dots: [
                                    {
                                        key: "vacation(title)",
                                        color: "blue",
                                        selectedDotColor: "white"
                                    },
                                    {
                                        key: "massage",
                                        color: "red",
                                        selectedDotColor: "white"
                                    }
                                ],
                                selected: true
                            },
                            "2012-05-09": {
                                dots: [
                                    {
                                        key: "vacation",
                                        color: "blue",
                                        selectedColor: "red"
                                    },
                                    {
                                        key: "massage",
                                        color: "red",
                                        selectedColor: "blue"
                                    }
                                ],
                                disabled: true
                            }
                        }}

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Events calendar, change format of api json’ is closed to new replies.