RSS(Rich Site Summary) allows a blogger or publisher to aggregate updates from their favourite site and post them on WordPress sites. Once configured, these feeds automatically post updates to your site. Although the process is automatic, you can always postpone RSS feed publishing time to validate the content before reaching your audience. This article shows you how to delay the RSS feed publishing time.
To edit your Theme setting file to extend the RSS feed publishing time, follow the steps below :
On the Theme Editor, select the Theme you want to edit from the dropdown:
The files for this selected theme is listed on the right column under Theme Files:
Click on the file named “functions.php”:
Insert the following code at the end of functions.php:
function extend_rss_time_frame($where) { global $wpdb; if (is_feed()) { $now = gmdate('Y-m-d H:i:s'); $wait = '100'; //extend by 100 minutes $device = 'MINUTE'; $where.=" AND TIMESTAMPDIFF($device, $wpdb->posts.post_date_gmt, '$now') > $wait "; } return $where; } add_filter('posts_where', 'extend_rss_time_frame');
For more information about the please visit the following link:https://wordpress.org/plugins/theme-editor/
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
Usamos cookies con el fin de personalizar para usted nuestro sitio Web y analizar el uso de éste. Usted acepta esto haciendo clic en “Acepto” o al continuar usando el sitio Web. Hay más información sobre cookies en nuestra política de privacidad.