Post Pic

How to force the RSS Widget to refresh more often

WordPress have a built-in widget that allows you to display any RSS feed on your blog. Although this widget is great, sometimes you may wish it refresh more often. Here is a simple solution to modify the widget refresh rate.

To apply this trick, simply put the following code into your functions.php file:

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

Thanks to Smashing Magazine for the code!

2 Responses

Aug 10 2012 09:11

Simple yet powerful tutorial

Feb 02 2013 21:05

Perfect! An easy solution for what I needed. Thanks.

Trackbacks:

Leave a Comment

* Name, Email, Comment are Required

WP Theme of the week

Sponsored Likebox