Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are experiencing issues with how the WPML link scan works differently between the Enfold and Kadence themes. Specifically, you've noticed that with Kadence, the scan seems to refer to page links rather than page IDs, unlike with Enfold.
Solution:
The way WPML processes links depends on whether the links contain an "href" attribute. It uses regular expressions to match these links to the current rewrite rules of WordPress and then processes them accordingly. The system can handle both full URLs and partial URLs. Primarily, it attempts to identify the post ID and processes it. If a link includes a page ID, WPML can adjust this ID to the corresponding translated ID through specific hooks. For a deeper understanding or to debug issues specific to your theme, you should review the code in

/wp-content/plugins/sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php

under the function

\AbsoluteLinks::_process_generic_text

.

If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. We also advise checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML Support Forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 2 replies, has 0 voices.

Last updated by Itamar 1 month, 4 weeks ago.

Assisted by: Itamar.

Author Posts
December 10, 2025 at 3:36 pm #17653058

Sietse

I am wondering how the link scan works. When using the Enfold theme, it works perfectly and it points everything towards the correct links. With Kadence however, it seems that the link is rather referring to the page link rather than the page ID. Could it be that the scan works best if the theme that is set-up uses pageID referencing instead of page linking?

December 11, 2025 at 8:18 pm #17657447

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I've passed on your question to our second-tier supporters. When I have their reply, I'll update you here.

I appreciate your patience.
Itamar.

December 14, 2025 at 8:21 pm #17662384

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

Here is the reply from our second-tier supporter.

This is a vast subject. It will be better to deal with specific cases than to go into that much detail.

How we detect links in content - if they contain "href" -> \AbsoluteLinks::has_href_attribute, for example, then it is a link.

It is regex matched, then for the current rewrite rules of WordPress, and processed further.

It can take a full URL and process it, but it can also work with a partial URL.

Basically, it always tries to get the post ID and process it...

If it has a page ID, it is a different case and can be processed via our hooks to adjust the ID to the translated ID based on the language.

Mainly you should check \AbsoluteLinks::_process_generic_text in /wp-content/plugins/sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php

The code is there and can be seen and debugged based on your case.

Best Regards,
Itamar.