• Is there already a hack or a normal way I’ve overseen to limit the ending date a post is shown? Say, I want to show a post only until Sunday midnight May 1st, not on Monday May 2nd? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Would this still be viewable in the archives? or are we talking about totally removing it from the database? Either way this sounds like a doable hack

    Thread Starter hgw

    (@hgw)

    It’s not necessary to keep the messages limited by date in the archive, as these are in my case tipps for one-time-events. But if I don’t specify a limit-date, they should be kept in archive as usual. This should be optional. Thanks!

    A plugin could be developed to do this in WordPress.
    <rb>

    yeah, simple hack into the wp-blog-header query, adding a where clause.
    since I’m not looking at any code right now, this is COMPLETELY pseudo-code, not meant for direct use. 😉 caveat emptor.
    something like:
    … OR (post_untildate > 0 && post_untildate < now())
    You’d need a new field in your post data, and an edit field in the post edit form to match.
    -d

    The plugin-idea was quite good – what happend to it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show post until date x only’ is closed to new replies.