Polylang translated pages not showing in llms.txt

#1088735
  • Resolved Gary
    Rank Math free

    For site http://www.dezziebakery.com, the site is in 3 languages using Polylang for the French and Spanish. EN is the main language and it has shown up properly since I set up the llms.txt.

    I have followed the instructions to have Polylang work with Rank Math. creating the rank-math.php and rank-math-ppl.php in the Astra theme root folder. I have also checked Taxonomies and Tags in case that would help, and clicked save to generate again the llms. I looked at it, and only EN shows up.

    Can you please help me with this

Viewing 9 replies - 1 through 9 (of 9 total)
  • 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:

    1. 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.
    2. 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.
    3. Permalinks: Sometimes, refreshing your permalinks can help. Go to Settings → Permalinks and simply click Save Changes without making any changes.
    4. Cache: If you are using any caching plugins, clear the cache to ensure that the latest changes are reflected.
    5. 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!

    Gary
    Rank Math free

    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.

    Gary
    Rank Math free

    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.

    Gary
    Rank Math free

    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.

    Gary
    Rank Math free

    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.

    Gary
    Rank Math free

    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

Viewing 9 replies - 1 through 9 (of 9 total)

You must be logged in to reply to this ticket.