Polylang Translated Pages Not Showing in llms.txt with Rank Math

#1095394
  • Resolved farhan ali
    Rank Math free

    Hello Support Team,

    I am facing an issue where my translated pages created with Polylang are not being included in the llms.txt file. The default language pages are showing correctly, but the translated versions are missing, which seems to affect my SEO indexing.

    I am currently using Rank Math SEO plugin along with Polylang, and everything else appears to be working fine. However, this specific issue is preventing my multilingual pages from being crawled properly. It feels somewhat similar to how users compare Texas Roadhouse prices across different menus — the main content shows up fine, but the alternative versions (translations) are missing.

    Steps to Reproduce:

    Create a page in the default language.

    Translate the same page using Polylang.

    Generate the llms.txt file with Rank Math.

    Notice that the translated version does not appear in the file.

    Expected Behavior:
    Both default and translated pages should appear in llms.txt for proper SEO indexing.

    Actual Behavior:
    Only the default language page appears, while translated versions are excluded.

    Additional Info:

    WordPress version: [add version]

    Rank Math version: [add version]

    Polylang version: [add version]

    Theme: [add theme name]

    Could you please confirm if this is a compatibility issue between Rank Math and Polylang, or if there is a configuration I may have missed?

    Thanks in advance for your guidance.

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with your translated pages not appearing in the llms.txt file when using Rank Math with Polylang. This can indeed affect your SEO indexing, and we appreciate you bringing this to our attention.

    Currently, Polylang does not have native compatibility with Rank Math, which can lead to issues like the one you are experiencing. To resolve this, you may need to manually add compatibility code to your website. Here’s a brief overview of what you can do:

    1. Add Compatibility Code: You can create a new PHP file in your theme’s folder (e.g., rank-math-ppl.php) and add the necessary code to ensure that translated pages are included in the llms.txt file. You can find detailed instructions on how to do this in our knowledge base article on Polylang Compatibility.

    2. Check Your Settings: Ensure that your Polylang settings are correctly configured to allow for translations of all necessary content types.

    3. Backup Your Site: Before making any changes, we recommend taking a backup of your website’s files and database to prevent any data loss.

    If you would like more comprehensive assistance, we also offer a professional setup service that ensures your plugin setup is fully correct and adheres to the latest SEO standards. You can find more information about this service at Rank Math Services.

    Please reply to this ticket with your WordPress version, Rank Math version, Polylang version, and theme name so we can assist you further.

    Thank you for your understanding, and we look forward to helping you resolve this issue!

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Polylang Translated Pages Not Showing in llms.txt with Rank Math’ is closed to new replies.