Jump to content

Delaying your WordPress RSS Feed


Recommended Posts

I can’t tell you how many times I have written an article, hit publish, then realized that I made some mistakes.  It doesn’t matter how much I proofread a post, it happens all the time.  With that, our readers get these articles delivered to them through my feed.  Wouldn’t it be nice if I could delay the feed a bit, just in case I have to make a change? Well, you can… and this is how. The code below will delay your feed for 30 minutes.  You can change the time it takes by editing the integer and designating the time in minutes, hours, days, etc. 1. edit your theme’s functions.php file 2. paste the following code between the <?php and the ?> //-------------------------------------------------------------------------- // Start Delay Feed // -------------------------------------------------------------------------- function publish_later_on_feed($where) { global $wpdb; if (is_feed()) { // timestamp in WP-format $now = gmdate('Y-m-d H:i:s'); // value for wait; Read More...9WK--U27Y5s

View the full article

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...