Thread Starter
Tigr
(@tigr)
Well, can someone at least point me in the right direction?
Plugin Author
Chouby
(@chouby)
If you have some PHP skills, you should look at adding a new rewrite rule (not sure however that it will be sufficient).
Thread Starter
Tigr
(@tigr)
How would a rewrite rule help? I need to combine the output, not redirect the /rss/ to /en/rss/. I was hoping for some pointer to where the RSS links are changed so that I can actually leave the “original” RSS generator in place in addition to the language-specific ones…
Plugin Author
Chouby
(@chouby)
because /en/rss points to /?feed=rss2&lang=en
You want to point to /?feed=rss2 only
Not sure that it will be sufficient however. As Polylang won’t find any valid language, so that may just break or need more tweaks.
Thread Starter
Tigr
(@tigr)
Mmmm… that does not sound right… I would be thinking along the lines of getting a quasi-language amptly named “all” and then getting /?feed=rss2&lang=all Is that arrangement possible?
Thread Starter
Tigr
(@tigr)
Where is the feed handling in the code?
Plugin Author
Chouby
(@chouby)
Links are managed in /frontend/frontend-links.php (I use the filter ‘feed_link’). Rewrite rules are managed in /include/links-directory.php. And WP manages everything else as the language is a taxonomy.
Thread Starter
Tigr
(@tigr)
Right. The code is about an order of magnitude less obvious than I would like it to be 🙂 I understand it all happens by magic but I do not understand where to change that magic, unfortunately 🙁
I think the best would be to leave RSS alone and have the links /rss/ and /en/rss/ where the former will generate a full list of posts and the latter – only in English. Now if I only knew where and what to change…