 carmM
|
Background of the issue:
I am trying to update URLs in posts, but the changes do not persist. The issue can be seen on this page: hidden link. I have also provided a video illustrating what I see in the backend and what I have done to resolve it: hidden link.
Symptoms:
The content remains in English, and the links within the text are not updating as expected.
Questions:
Why are the URLs in my posts not updating?
How can I ensure the content is translated into French and the links are updated?hidden link
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
Hello,
Usually, after migrating the site, you should go to the WordPress Permalink settings and save them again.
This will reset the permalinks of the site and they will use the new site URL.
But when it comes to lanks that are placed directly into the content of pages or posts, means as raw text with HTML, then you usually would need to adjust those links manually.
It is not even really a WPML issues. You usually would experience the same issue on a site running without WPML.
I see Search & Replace plugin seems not to solve the issue.
Maybe you could try to fix the issue with a PHP snippet like this one:
function replace_site_url() {
global $wpdb;
$old_url = '<em><u>hidden link</u></em>';
$new_url = '<em><u>hidden link</u></em>';
$wpdb->query(
$wpdb->prepare(
"UPDATE {$wpdb->posts} SET post_content = REPLACE(post_content, %s, %s)",
$old_url,
$new_url
)
);
}
add_action('init', 'replace_site_url');
Adjust the URLs, then paste it to the functions.php file of your theme. Refresh the website and remove the snippet again.
If this will still not solve the issue, please take note that this is expected WordPress behavior and not a WPML issue.
Best regards
Andreas
|
 carmM
|
This is two articles that I cant update as examples:
hidden link
hidden link
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
The URLs that are getting translation on your video according to their label are Button Links and not Text Links.
Internal links from raw text do usually not appear inside the WPML Translation Editor.
Instead WPML will be able to adjust those links once the content you are linking to has been translated.
At the moment I see that this seems to work on your French example posts.
Could you please verify?
|
 carmM
|
The content has already been translated... the editor is not saving the updates I make to the blog posts. This is a live site and a big problem can I get some quick help please.
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
I would like to request temporary access (wp-admin and FTP) to the site to investigate the issue further.
The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up the site and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and site login details will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.
The private reply form looks like this:
hidden link
The next time you reply, click on "I still need assistance".
Video:
hidden link
Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
Hello,
I was not yet able to figure out what is causing the issue, but it seems to be related to the new UI of the Advanced Translation Editor.
Take note, that it is not recommended to use inlide CSS when working with the Advanced Translation Editor, as you need to translate it.
Example:
<p style="padding-left: 40px;">3. Ensuring Safety and Reliability</p>
See screenshot. Anyhow, the translation is still stuck at 98%.
I wanted to ask, if you would agree converting the post content to WP Bakery content and give it a try with the translation?
Are there more posts that have a similar issue?
Best regards
Andreas
|
 carmM
|
Hi Andreas, every post uses the avada theme. It is all 144 of them. I was able to get past this issue by a very cumbersome editing process of going to the view posts screen -> click the translate button there -> go to the advanced editor -> Update the links -> switch to old editor -> check off the updated links and change them from green to orange -> click the button to save -> go. back to post screen
This seems to be a very long and time consuming workaround
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
By switching to the old editor, you mean that you changes the Advanced Translation Editor setting to use its old UI?
|