I have integrated a calendar into the meta view.
I have added the required div id into the template section that will display the calendar view using js library.
Here you can see we are using static data array that we need to convert with event post type data array.
I have added a query post argument into the meta view and get all the event title there.
Please let me know how can we add the array variable in which I can store the required data, encode it in json format and pass it into the script section.
Please check the attached screenshot and suggest me on it.