• criserjjio

    (@criserjjio)


    Hi I want to change the dates on the calendar
    instead of the post published date, I want it instead to be a date custom field then the calendar will fetch that and show that post based on the custom field date rather than the date when the post was published, is it possible?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Zack Grossbart

    (@zgrossbart)

    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.

    Thread Starter criserjjio

    (@criserjjio)

    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

    Zack Grossbart

    (@zgrossbart)

    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?

    Thread Starter criserjjio

    (@criserjjio)

    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’

    Zack Grossbart

    (@zgrossbart)

    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.

    Thread Starter criserjjio

    (@criserjjio)

    Sure! any help would be great just let me know here for the details and will try to do it on my end

    Zack Grossbart

    (@zgrossbart)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change Post dates on the calendar’ is closed to new replies.