Hello,
I apologize for the issue you are facing with your Polylang translated pages not showing in the llms.txt
. It seems like you’ve already taken several steps to ensure compatibility between Polylang and Rank Math, which is great.
To troubleshoot this issue further, please ensure that you have followed all the necessary steps outlined in our guide for making Polylang compatible with Rank Math. Here’s a quick checklist:
- Compatibility Code: Ensure that the code you added to both
rank-math.php
and rank-math-ppl.php
files is correct and saved properly. You can refer to the instructions here for guidance.
- Sitemap Settings: Check your Rank Math sitemap settings to ensure that the translated pages are included. You can find these settings under Rank Math → Sitemap Settings in your WordPress dashboard.
- Permalinks: Sometimes, refreshing your permalinks can help. Go to Settings → Permalinks and simply click Save Changes without making any changes.
- Cache: If you are using any caching plugins, clear the cache to ensure that the latest changes are reflected.
- Debugging: If the issue persists, consider enabling debugging in WordPress to see if there are any errors being logged that could provide more insight into the problem.
If after checking these points the translated pages still do not appear in llms.txt
, please reply to this ticket with any error messages you might be seeing or additional details about your setup. A human agent from our support team will then take over and assist you further.
Thank you for raising this concern, and we hope to resolve it for you soon!
I have checked all the above. My translated pages show up in the sitemap, but still do not show up in the llms.txt file after generating it again
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
The Polylang compatibility we’ve made is not tailored for the llms.txt at the moment, since this feature was just recently launched, so unfortunately, translated content may not appear in the file.
With that said, we will treat this as an improvement suggestion and share this with our development team.
Thank you.
Good day
Everything else is very good. If only one detail, that will be improved, then it doesn’t matter. FOr now, it is easy to manually enter them
What is funny, I am trying it on another site, in 3 languages. All the site pages show up only in English, but the forms created with Metform show up in all 3 languages.
Where can I go to change my review?
Hello,
In the mean time, please add below code in the rank-math-ppl.php
file, to include all posts from the available languages ( fr
, en
and es
).
add_filter('rank_math/llms_txt/posts_query_args', function ($args) {
$args['lang'] = implode(',', pll_languages_list());
return $args;
});
We are also looking into better ways to integrate this, and we will share another update below this one.
Thank you.
I add this below the last line of the code for that tag?, or within the code?
Hello,
Adding it after the last line is okay, or even better, add it inside the init() function of the class PLL_RankMath ( public function init() {...
)
Thank you.
This addition worked great. I added it at the end of the PLL_RankMath ( public function init() {…
Everything shows up
I changed my rating and comments
Thank you for your help
Gary Ness