Support › General › Automatically unpublish posts at date set in custom field - possible?Resolved
I would like WordPress to set posts to unpublished automatically when a date, which is set in a custom field, is reached.
I found a few bits of knowledge here but only enough to see that it should work, however I would be very grateful if anyone knew of a "how to" somewhere and would post it here 🙂
Thank you in advance!
You will need to add some custom code to set the post status to Draft based on the custom field value. Please get more details here https://stackoverflow.com/questions/67042582/wordpress-set-post-to-draft-by-date-picker-custom-field
Thank you Peter!
Just one more question: Will that code go into functions.php? Is there a how-to for Metabox somewhere? I was not able to find that yet.
There isn't a tutorial for this case. If you are not able to complete the task, we offer a customization code for an extra fee. In that case, please contact us here https://metabox.io/contact/
Thank you! I dont mean tutorial for this special case.
I mean a tutorial for "how to add custom code with/for metabox" in general.