WordPress.org

Ready to get started?Download WordPress

Forums

Post Expirator
Auto expire posts after certain # of days from post date? (8 posts)

  1. Rene Michaels
    Member
    Posted 1 year ago #

    I would like to auto-expire posts after a certain number of days from the original post date and have them auto delete. Example; set a rule to expire posts after 547 days (from the original post date)

    Authors would not need to do anything with regard to setting an expiry when they add a post as this would be set in the Post Expirator admin.

    Is there a way to do that with Post Expirator?

    http://wordpress.org/extend/plugins/post-expirator/

  2. Aaron Axelsen
    Member
    Plugin Author

    Posted 1 year ago #

    you can set a default expiration value .. so when you create the post, it will have a default value set

  3. Rene Michaels
    Member
    Posted 1 year ago #

    Hey Aaron,

    Thanks for the guidance!

    Just so I'm clear, I see a setting for "Default Date/Time Duration:" and if I set to "Custom", and then I can "Set the custom value to use for the default expiration date.", but what do I enter in that field? ...it says to "see PHP strtotime function", and I have no clue what to enter in that field. I want the posts to auto expire 547 days from the original post date.

    Appreciate the help!

  4. Handoko
    Member
    Posted 1 year ago #

    Enter this bellow:
    +547 day

  5. Rene Michaels
    Member
    Posted 1 year ago #

    Excellent, thanks guys!

  6. qzha017
    Member
    Posted 1 year ago #

    Hi Aaron it dose not work, I put in +7 days but nothing happens, I go and check the posts from Admin and under expires all says Never. I go and check single post page nothing displays although I selected show post footer.

    can you please help me to work this, so far it dosent do anything for me

  7. Handoko
    Member
    Posted 1 year ago #

    Have you tried to put +1 day ? Try only 1 day first. If it works then you can try others. It will be easier if you try the shorter first.

  8. qzha017
    Member
    Posted 1 year ago #

    Ok I just realised my posts are generated by the Gravity Form not through the admin, thats why it didnt work. Thanks for your fast reply, do you have any idea how to make it work if the post were created through Gravity Forms? Its embedded into pages then published as posts.

    Thanks alot Handoko

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.