• 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]

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter gragu

    (@gragu)

    Hi Chris, i’m sorry to report that gnews won’t retrieve anymore featured images.

    Hi Gragu,

    That is a known issue with something going on at Google. Many publishers have been complaining about that. It’s not limited to users of GN Publisher, even sites that don’t use WP are saying it’s happening to them.

    Google is aware of the issue and investigating,

    Chris

    Thread Starter gragu

    (@gragu)

    Ok, thanks Chris, have a nice day!

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Crawling Delay’ is closed to new replies.