• Resolved Vizworld

    (@vizworld)


    Just confirmed & fixed this. If you have Yoast’s Google Analytics plugin with their RSS Tracking enabled, and look at a feed specific to a category (website.com/category/science/feed/) then you’ll see all the link tags are empty.

    The issue is in line 582. Line 582 determines if you’re retrieving a feed by comparing the $wp->request variable. This fails when retrieving the feed of a category (on vizworld, /science/feed).

    Modifying it as follows:

    [code]
    if (substr($wp->request,-4) == 'feed') {
    [/code]
    Fixes the problem.

    Since there is no else condition on the if, when it doesn’t match it accidentally sets the permalink to null, leading to missing links. It should probably have an “else” clause that simply returns $guid.

    I sent an email to Joost (via the contact form on his website), but per his instructions ( and to help others with similar problems ), I post it here as well.

Viewing 1 replies (of 1 total)
  • hi can u make it more clear? Where is this if (substr($wp->request,-4) == 'feed') { code located. and where should we make a change?

Viewing 1 replies (of 1 total)
  • The topic ‘Bug in Yoast Google-Analytics causes blank permalinks in RSS on Categories’ is closed to new replies.