Crawling Delay
-
Hi,
After several attempts finally RSS feeds works, thanks to GN Publisher and this forum.
I’ve successfully used this form of feed: https://www.hifipertutti.it/?category_name=hifi-news&feed=gn
However, gnews is very slow updating new articles, i’ve added the following lines in functions.php to disable RSS cache:
//disable rss feed cache function turn_off_feed_caching( $feed ) { $feed->enable_cache( false ); } add_action( 'wp_feed_options', 'turn_off_feed_caching' ); //DISABLE RSS FEED CACHE END //featured image in rss feed function featuredtoRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content = '<div>' . get_the_post_thumbnail( $post->ID, 'full', array( 'style' => 'margin-bottom: 15px;' ) ) . '</div>' . $content; } return $content; } add_filter('the_excerpt_rss', 'featuredtoRSS'); add_filter('the_content_feed', 'featuredtoRSS'); //END FEATURED IMAGE IN RSS FEED
Any suggestion?
The page I need help with: [log in to see the link]
- The topic ‘Crawling Delay’ is closed to new replies.