• Resolved DrLightman

    (@drlightman)


    If one uses the yoast’s /category/ removal and defines custom feeds with add_feed() function, they won’t work for categories becasue the custom feeds name are not being added to specific rewrite rules.

    Yoast generated rule for category “mycat”:

    [(mycat)/(?:feed/)?(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]

    Standard WordPress rule for categories:

    [category/(.+?)/feed/(feed|rdf|rss|rss2|atom|some-custom-feed1|some-custom-feed2|…)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]

    See in the standard rule how custom feed names are added?

    Please fix!

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[bug] if removing /category/, rewrite rules will ignore custom feeds’ is closed to new replies.