• Resolved Jeshua

    (@jeshuavs1)


    Hi team of Pods. I’ve a question.

    I’d like to auto draft posts from a CPT called “education” taking by reference a date and an hour custom field that I added to the CPT by separately, named with the key “end_date” and “end_hour”.

    So, the thing is that the posts from “education” auto expires (draft status) in the day and specific hour by the custom fields.

Viewing 1 replies (of 1 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @jeshuavs1

    You will have to go with custom CRON jobs and your own method/function to change the post status based on those fields.
    Such a customization is out of scope for Pods support, You’ll have to make it your self or hire a developer to do this for you.
    One tip beforehand. It’s easier to create a single date/time field instead of a separate date and time fields. It will make it easier to query for posts that should expire.

    Cheers, Jory

Viewing 1 replies (of 1 total)
  • The topic ‘Auto draft (expire) custom post type by a custom date field.’ is closed to new replies.