Polylang compatibility: titles & descriptions

  • Hello
    This is a follow up to the previous ticket: https://support.rankmath.com/ticket/polylang-compatibility-titles-descriptions/

    10 months ago, Rank Math support made me add the following filter:
    `
    add_action( “init”, function(){
    do_action( “wpml_loaded” );
    }, 9999 );
    `
    fixed the compatibility issue with Polylang.
    Now it doesn’t work anymore.

    I contacted Polylang support and they say Rank Math needs to do something to ensure compatibility.
    I had to add a compatibility plugin to be able to translate the titles.

    `
    add_action( ‘plugins_loaded’, ‘reset_rank_math_options’ );
    function reset_rank_math_options() {
    if ( function_exists( ‘rank_math’ ) ) {
    rank_math()->settings->reset();
    }
    }
    `

    Polyland says Rank Math loads its options before other plugins being loaded. It should not load options before “plugins_loaded”, if not, other plugins like Polylang can’t hook to filters and actions and then prevents translations from being loaded.

    Can something be done to add complete Polylang compatibility?
    Thank you

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Could you share some login details so we can check the issue closer on your site? To do that, please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    As you can see, titles on

    There are french titles (<title> tag) on
    https://www.cosmetique-thermesmarins.com/?s=spa
    and they are only are translated in english on
    https://www.cosmetique-thermesmarins.com/en/?s=spa
    if the plugin “Polylang Rank Math SEO Compatibility” is activated.

    Hello,

    Please update to the latest Beta version by following this tutorial:
    https://rankmath.com/kb/version-control/#beta-updates

    That should fix the issue for you.

    The final version will be released in a few weeks and you will see a notification in your dashboard when an update comes.

    Moreover, The Polylang team will have to add the compatibility code in their plugin. We already created PR on their repo: https://github.com/polylang/polylang/pull/373

    You can contact the Polylang team and ask them to merge the pull request. You can also add the code from PR in your theme’s functions.php to make the Sitemap work till the Polylang team releases an update.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello Uzair?
    Can’t the PR be added into Rank Math for better maintenance?
    Thank you

    Hello,

    We would have done that already if it were up to us.

    But this is something that will need to be added by Polylang. We have already provided them with the code, they just need to add it to their plugin.

    Hope that helps.

    Well sorry but that doesn’t help.
    I am in the middle of both of you, in a dead end actually.

    Hello,

    I’m Sebastien from Polylang pro support. I’m sorry but there’s nothing in your PR you can’t do in Rank Math directly.
    Simply test if Polylang exists and do your stuff. SEOPress made it’s complete compatibility with us without asking any PR to us.

    Best regards

    Hello Sebastien,

    Thank you for chiming in.

    It makes sense to have the code in your plugin as all the language data is managed by your plugin as well.

    We were hoping you would add the code for Rank Math since you already did the same for Yoast. Unless, there is a reason you do not want to do it for Rank Math but only for Yoast?

    Please let us know if anything is keeping you from adding the code so we can share it with the dev. team.

    Hello Uzair,

    In our mind, the plugin which want to be compatible with another has to make necessary in their code when possible.

    About Yoast, this is the most used WP SEO plugin, we decided to develop a compatibility without asking anything to Yoast. They broke it in their 14 version but it’s another problem.

    SEOPress wanted to be compatible with us and WPML, they developed their own solution without adding code in our plugin or WPML ones.

    We decided to be compatible with WooCommerce, we developed an addon for WooCommerce without asking them to include code.

    All code we include in Polylang will be code we’ll have to maintain… so the code you create, we prefere you include it in your plugin…

    We don’t have any problem with Rank Math, developpers can come & ask technical questions on https://polylang.pro/support/ without problem.

    Hello,

    We understand.

    Let’s work together on this to ensure our users do not have to suffer.

    Your dev. team can reach our dev. team at support@rankmath.com

    Thank you.

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

The ticket ‘Polylang compatibility: titles & descriptions’ is closed to new replies.