Skip Navigation

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.

This topic contains 6 replies, has 1 voice.

Last updated by karelV-8 5 days, 5 hours ago.

Assisted by: Andreas W..

Author Posts
January 24, 2025 at 10:34 am #16630956

karelV-8

Background of the issue:
I am trying to ensure that the translated tags on my website are indexed correctly. I checked the HTML code on this page: hidden link and found a tag. I suspect there might be a compatibility issue between WPML and Yoast SEO, as in Yoast everything is set to INDEX TAGS, and the English version of the tag is indexed correctly.

Symptoms:
The translated tag page contains a tag instead of the expected .

Questions:
Why is the translated tag page not being indexed correctly?
Is there a compatibility issue between WPML and Yoast SEO affecting the indexing of translated tags?

January 27, 2025 at 2:04 pm #16638273

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.

As of now, we don't have a known issue with Yoast SEO related to *The translated tag page contains a tag instead of the expected*. Please visit this URL for more details - https://wpml.org/plugin/yoast-seo/

We are not able to reproduce the issue exactly on this tag page - hidden link

So please share the exact steps to replicate the bug or a couple of screenshots for a better understanding.

--
Thanks!

Bigul

January 27, 2025 at 5:20 pm #16638883

karelV-8

I don't know what you mean by not being able to reproduce the problem. It is still there. Just go to those English and French tag pages and check the HTML code. In French the tag page is NOINDEX. So the problem is very easily visible.

Karel

noindex.jpg
Index.jpg
Yoast.jpg
January 29, 2025 at 6:20 pm #16648276

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Could you please verify if the relative Yoast SEO custom field is set to "Copy" at WPML > Settings > Custom Field Translation?

If you need to adjust these settings you will need to update the translations.

Best regards
Andreas

February 3, 2025 at 10:49 am #16662286

karelV-8

Alright, I moved everything to a staging environment. Deactivated plugins and well...

1. If I disable Yoast, the line with index or noindex disappears. Nothing is there because Yoast is not affecting it.
2. But, I was checking the tags because some tags DO have correct index tags. But some don't.
3. When I check the tags under French page of tags, they are all correct and visible.
4. When I go to your wpml settings to the taxonomy translations, hundreds of tags are missing. It's still not there and not able to be found. Why. See the images attached.

I think you do not "see" the tags, cannot work with it and cannot use the information from yoast to show it on the tag pages.

K.

Tag FR.jpg
Tags missing.jpg
February 4, 2025 at 2:25 pm #16667319

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Thank you for the provided screenshots.

Please take a backup of your site and then go to WPML > Support > Troubleshooting.

https://wpml.org/documentation/support/wpml-troubleshooting-options/

Try running the first option to "Synchronize Post taxonomies" and:

- Clear the Cache in WPML
- Fix element_type collation
- Set language information

If this will not solve the issue, please let me know.

Best regards
Andreas

February 4, 2025 at 4:36 pm #16667903

karelV-8

Just did it all, nothing has changed.

February 4, 2025 at 5:08 pm #16668021

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hi,

I would like to offer to take a closer look and 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.

I may need to install a plugin called "All In One WP Migration" here to create a copy of the site that I can use to investigate the issue further.

However, I would also be very grateful if you could provide a staging site or copy of the website from your server for this purpose.

If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/de/account/websites/.

If you are not able to provide such a copy of the website for testing, please let me know on this ticket.

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.

Best regards
Andreas

February 5, 2025 at 10:54 am #16670414

karelV-8

I am idiot. I have this code running:

// Yoast tag indexing
// add noindex, follow to tag pages with less than 5 posts
add_filter('wpseo_robots', 'custom_noindex_follow_tag_pages');

function custom_noindex_follow_tag_pages($robots) {
if (is_tag()) {
$tag = get_queried_object();
$args = array(
'tag' => $tag->slug,
'posts_per_page' => -1 // Retrieves all posts associated with the tag.
);
$query = new WP_Query($args);
if ($query->found_posts < 5) {
return 'noindex,follow';
}
}
return $robots; // Return original robots value if conditions are not met.
}

Sorry for bothering you 😉