Automatically unpublish posts at date set in custom field - possible?

Support General Automatically unpublish posts at date set in custom field - possible?Resolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43638
    DufflDuffl
    Participant

    Hello there!

    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!

    Regards

    #43653
    PeterPeter
    Moderator

    Hello,

    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

    #43667
    DufflDuffl
    Participant

    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.

    #43674
    PeterPeter
    Moderator

    Hello,

    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/

    #43676
    DufflDuffl
    Participant

    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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.