Hello @criserjjio,
Changing the date field to be a custom field is possible, but it would be a lot of work. You should also be aware that there are multiple dates that WordPress posts use. There’s a published date, a scheduled date, and a created date. Do you want to change all of them?
I could give you some pointers for where to start changing the code for the calendar if you’re interested.
Hi Zack
Yes, I want the calendar to show the custom field date I have for my posts to show instead of the published date, a scheduled date, and a created date
So it would look like an event/appointment type of calendar
Can you please give me some more details about what you’re looking for. Are you saying that you want to use the Editorial Calendar for something other than WordPress posts?
Hi Zack sorry for the confusion
Just to explain better, this is the scenario
I have a custom post type called ‘bookings’
and on that post type I have a custom field called ‘booking dates’
Now on the calendar by default it shows the date when the post was published, but instead of the published date I want the calendar to show the ‘booking dates’.
for example I have a post with a custom field ‘booking date’ with a value of ‘january 01 2022’ and was published ‘december 20 2021’ instead of the december 20 2021 showing on the calendar I want the calendar to show the date ‘january 01 2022’
Thank you for the explanation @criserjjio. I understand what you’re looking for.
The calendar doesn’t support using a different field for the date. It would be possible, but it would be a lot of custom code. I can point you in the right direction if you’d like.
Sure! any help would be great just let me know here for the details and will try to do it on my end
Start by looking at the edcal_filter_where
function in edcal.php. That’s where we build the query that filters which posts show up in the calendar.