Rank Math + WPML

#220631
  • Resolved Vibrolandia
    Rank Math free

    Hello there,

    I’m having an issue with Rank Math + WPML. When I activate the Remove category base and Remove base on the general settings almost all the slugs on the secondary language are not working as expected, for example, the URL is supposed to be /es/spanish-category-name/product-name and it is /es/mainlanguage-category-name/product-name, it happens in a lot of products but not at them all! Some products have the right slugs, the categories work just fine although. I’ve made a copy of my website to a staging host and after deactivate Rank Math the slugs are correct but of course with the base and category base enable. Any solution? I need to use Rank Math and base/category base removal since everything on my main language is already on index.
    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Brian
    Rank Math free

    Hello,

    Thank you for getting back to us and sorry that this is happening.

    Did you try checking how you have set up your permalinks if this for your product base? Check how the “remove base” settings are for your WooCommerce setting in Rank Math are and ensure that you do actually have a base in your products from both languages as well.

    It could be the reason why your product links are not displaying in your translated languages, that you probably have not set them to match in permalinks settings.

    These settings work hand in hand with the permalinks settings.

    We are looking forward to helping you.
    Thank you.

    Hello,

    I have permalinks all set for both languages, the issue is only happening in some categories, there are categories were all the products have the correct URL but some of them have “mixed” URLs from both languages. For example the correct URL should be /es/spanish-category-name/name-of-product and in some products for some categories the URL is /es/base-language-category-name/product-name got it?

    Found a solution: Export Rank Math data and then delete all Rank Math data from Database with this code

    /**
     * Filter to remove Rank Math data from the database
     */
    add_filter( 'rank_math_clear_data_on_uninstall', '__return_true' );

    Then disabled and uninstalled Rank Math from wordpress. Installed Rank Math again, imported the file and the issue seems solved now! Thanks in advance

    Hello,

    Thank you for the update.

    We are glad it worked for you, and this issue is already resolved.

    If you have any other concerns, please don’t hesitate to contact us anytime by creating a new ticket to assist you further with anything else.

    Thank you.

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

The ticket ‘Rank Math + WPML’ is closed to new replies.