WordPress.org

Ready to get started?Download WordPress

Forums

Post Expirator plugin: How to retain expired post and show a message (4 posts)

  1. ibexy
    Member
    Posted 4 years ago #

    I have installed the post expirator plugin. Its working well except its been set to only either delete or set a post to draft.

    I would like to retain expired posts and only show a message that the post has expired. Currently, post set to expire show a message containing expiry date at the bottom of each post. I want this message replaced by one showing the post has expired once the date is past. The post should remain and not be set to draft or deleted.

    I know I should take this to the plugin author's website but the last time he posted there was in april. I doubt he comes there often. Kinda need this desperatly now.

  2. MichaelH
    Member
    Posted 4 years ago #

    The post should remain and not be set to draft or deleted.

    Then aren't you saying "I shouldn't use the post expirator plugin"?

    Might consider changing your theme's template to exclude old posts based on a custom field.

  3. ibexy
    Member
    Posted 4 years ago #

    Not exactly. I need the plugin but I want more options than setting a post to draft or deleting them. I need expired posts to remain untouched and to show a certain message only. For example, expired posts should have a highlited message on them like for example:

    Warning: This post has expired on mm-dd-yyy blah blah blah.

    Might consider changing your theme's template to exclude old posts based on a custom field.

    I wish I knew how to do that ;)

    any help with that ;) Will be really gratefull.

  4. Xenaco
    Member
    Posted 3 years ago #

    I would suggest that you should look at a plugin called Simple Timed Content by David Artiss. It is a free plugin available from WordPress.org

    You use this plugin by adding a shortcode to your post as follows:

    [timed ondate="yyyymmdd"]
    This content will appear on mm/dd/yy.
    [/timed]

    You can make the content say what ever you wish. You can turn off content with the shortcode [timed offdate="yyyymmdd"] and you can use both ondate= and offdate= in the same shortcode.

    You can also use ontime= and offtime= parameters.

    Visit

    Simple Timed Content Plugin

    for more details.

    This will do what you need done.

Topic Closed

This topic has been closed to new replies.

About this Topic