• Resolved conaire

    (@conaire)


    Hi Chris, really hope this plugin can work for me as I’ve put a lot of effort trying to get my feed into Google news over the last 6 months.

    Im having the same issue as many, Ive updated my feed to [ redundant link removed ] but am still getting the ‘no articles in this section’ issue in the publisher center. But every other feed reader has no issue.

    Its been about 24 hours since I added the gn feed, is there anything you think I can try? Will give a glowing review if you can help me get past this!

    Warm regards,
    Conor from The Sentiment

    • This topic was modified 4 years, 6 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Conor,

    I would help even without the promise of a glowing review, but glowing reviews are always welcome ??

    My first thought is that the Publisher Center is choking on the Visual Composer shortcode that’s included in the rss feed.

    Are you comfortable editing your functions.php file? If not, we’ll find another way to do this, but I want to see if this code in your functions.php file 1) removes the shortcodes from your rss feed and 2) resolves the issue in the Publisher Center.

    Again – only if you are comfortable and have some experience editing your functions.php file, add:

    //////remove shortcodes from feeds///////
    add_filter('the_excerpt_rss', 'remove_shortcodes_in_rss');
    add_filter('the_content', 'remove_shortcodes_in_rss');
    
    function remove_shortcodes_in_rss( $content )
    {
        global $post;
        if ( ! is_feed() )
            return $content;
        $content = strip_shortcodes( $post->post_content );
    return $content;
    }
    //////end remove shortcodes from feeds///////

    After adding that and saving, check your feeds to see if the visual composer shortcodes are gone. If they are, ‘refresh’ the sections in the Publisher Center, then wait about 15 minutes, then refresh the entire page using your browser’s refresh button. Then check to see if the sections are populated with articles.

    Please let me know the results. If this works, I’ll add it into the plugin for the next update,

    Chris

    Oh, if you aren’t comfortable editing your functions.php file directly, there’s a handy plugin I’ve used in the past that makes it easy to add functions without editing the file directly – it’s at: https://www.ads-software.com/plugins/my-custom-functions/

    Thread Starter conaire

    (@conaire)

    Thanks Chris, I’ve added that code and have given it about an hour – but looks like no change!

    Darn, ok, let me do some more research and testing here, it’s late my time. I’ll be back in touch tomorrow. In the meantime, just remove the code you added, we don’t want to leave useless code in there,

    Chris

    In testing, I’m finding that I may have been wrong about the shortcodes causing the problem, but still testing…

    Thread Starter conaire

    (@conaire)

    Thanks Chris, your help is very much appreciated!

    Missing article issue fixed through version 1.0.8, marking as resolved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘No articles in this section issue’ is closed to new replies.