Forums

Intentionally delaying RSS feed...with a twist (2 posts)

  1. Sekimori
    Member
    Posted 2 years ago #

    I have a client who would like to delay an RSS feed for 12 hours, but still have an up-to-date version for readers. Any wisdom would be most appreciated.

  2. whooami
    Member
    Posted 2 years ago #

    I have a client who would like to delay an RSS feed for 12 hours, but still have an up-to-date version for readers.

    delay the feed where? i dont understand. are you talking about in the rss widget?

    adjust the following as necessary and add it to your theme's function.php

    add_filter( 'wp_feed_cache_transient_lifetime', create_function('$a', 'return 1800;') );

    I dont think that affects the actual feed - just how frequently the widget is updated.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags