Forums

Hiding posts (and unhiding them automatically, based on date & time) (5 posts)

  1. sallz0r
    Member
    Posted 6 years ago #

    Hiya,

    First off, thanks heaps for WordPress - it's great - and apologies if this has been answered/implemented: I couldn't find it in about an hour or two of searching, so I thought it was safe to ask. :-)

    What I'm trying to do is be able to 'hide' posts when I first make them, then unhide them at a certain time. The intent for this is because my blog (which I use for random musings and life updates) I only sporadically update: maybe once a week or so, but I'm prone to doing a whole heap of posts. As such, to keep a feel of a 'daily' post or such, I'd like to be able to write, say, 7 or 8 posts on a weekend when I have time, and set each post to be 'revealed' on each day of the week.

    Is there anything that implements that sort of functionality? or, failing that, I'm handy with PHP myself (although I havn't looked into the guts and specifics of WP itself) - would any devs know if it would be possible to integrate something like that into WP as a plugin relatively easily? If so, I'm more than happy to have a crack at it...

  2. emeff
    Member
    Posted 6 years ago #

    You can edit the timestamp to the desired publishing time in the write post section - no plugin or hacking needed!

  3. moshu
    Member
    Posted 6 years ago #

    You don't need any plugin for that.
    When writing a post check the Edit Timestamp box (this is the part everybody forgets :) - and modify the date for the next coming days. It will be published only on that date and it's not visible before.

    Warning: WP does not support "future pinging" - so if you are pinging update services the ping will go out not when the post appears, but in real time, when you click the Publish button.

  4. sallz0r
    Member
    Posted 6 years ago #

    oh... really? I'm sure I tried that - but does that actually hide it until that time? Hrm, let me try it again.... :-)

    ack! I don't believe I'm that stupid! Yeah, turns out my box isn't the same time as my computer here: so that works fine, just gotta make sure that the time I set is actually in the future for the *server* (not the client, ie. my computer time when testing.)

    Sorry for the hassle, and thanks for the help!

  5. emeff
    Member
    Posted 6 years ago #

    No problem.

    Next possible step for you: PostExpire

    Now a really plugin that gives you the possiblity to hide a post to a desired date and time. Perhaps you like / need this, too.

    And for the future pinging you can use WP-cron (Google for that)

Topic Closed

This topic has been closed to new replies.

About this Topic