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.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 6 replies, has 1 voice.

Last updated by alexZ-17 31 minutes ago.

Assisted by: Andreas W..

Author Posts
January 9, 2025 at 5:41 am #16575933

alexZ-17

Background of the issue:
I am trying to ensure that the translated pages on my site, hidden link, have the same noindex tag as the original pages. The noindex tag is present in the original page's code, but it is missing in the translated versions. For example, the original page hidden link includes the noindex tag, but the translated page hidden link does not.

Symptoms:
The translated pages do not have the noindex tag which is present in the original pages.

Questions:
How can I ensure that the noindex tag is included in the translated pages using WPML?

January 10, 2025 at 12:16 am #16580099

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

How is the noindex tag added?

Viewing the source I can verify that the noindex tag is not carried over to the translation.

As a quick workaround you can manually edit the translation to ensure it's enabled.

1. Edit the page in the default language

2. Use the language switcher dropdown and switch to the secondary language (exit fullscreen if guttenberg is used)

3. Add the noindex tag if you are using a custom field to enable it and update

January 10, 2025 at 11:46 am #16581876

alexZ-17

It is added with HFCM plugin:
<!-- HFCM by 99 Robots - Snippet # 1: Noindex -->
<meta name="robots" content="noindex">
<!-- /end HFCM by 99 Robots -->
You should see at in the source!
Your proposal is hardly acceptable (many pages and many languages) and not clear:
Re 1. The page in default language is correct
Re 2. The language switcher is not available in WP editor, only in preview
Re 3. Where and how should be the tag added - manually in HTML? I do not do it!

Please answer the questions above and provide a proper solution ASAP!

January 10, 2025 at 8:53 pm #16583313

Andreas W.
Supporter

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

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

Hello,

Please go to WPML > Settings > Post Type Translation, check for the HFCM Code Post Type, and set it to "Translatable - only show translated items".

Guide:
https://wpml.org/documentation/getting-started-guide/translating-custom-posts/

Now, you should be able to translate these custom posts and create one code snippet per language.

If you translate those custom posts with the WPML Translation Editor, you might need to take a look into WPML > Settings > Custom Field Translation and make sure that fields that come from this plugin are set properly to "Copy" or "Translate".

Please read this:
https://wpml.org/documentation/support/language-configuration-files/custom-fields-translation-options/

Take note, that if you implement a snippet per shortcode, then each shortcode in each language will have a unique ID. You would need to place those shortcodes manually on each page, post, or template in such cases.

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

Best regards
Andreas

January 11, 2025 at 12:35 pm #16583909

alexZ-17

1. Your responce looks for me as not 100% relevant - may be you have confused me with somebody else.
You write about POSTS - I was asking about NOINDEX tag in PAGES
so the guide:
https://wpml.org/documentation/getting-started-guide/translating-custom-posts/
is to the best of my understanding irrelevant (I checked it), pls correct if not
2. I do not see any fields coming from HFCM in CustomFieldsTranslation, cf. screenshot. Which field would be expected?
3. For the development site where search engines are prohibited in WP.Settings NOINDEX is present, however coming from another plugin (All in One SEO), cf. screenshots
3. As I have said I implement the NOINDEX tag with HFCM plugin. Do you call it snippet? Cf screenshot.
How to place shortcodes manually on each page?

4.Please answer my questions about your colleague’s proposal:
Bobby.2. Use the language switcher dropdown and switch to the secondary language (exit fullscreen if guttenberg is used)
The language switcher is not available in WP editor, only in preview - where no editing is possible
Bobby.3. Add the noindex tag if you are using a custom field to enable it and update
Where and how should be the tag added - manually in HTML - please elaborate!

HFCM.Noindex_20250111.jpg
DEV.WP-Settings.Noindex_20250111.jpg
CustomFieldsTranslation.jpg
January 11, 2025 at 3:02 pm #16584215

Andreas W.
Supporter

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

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

Thank you for your message.

I can see that the meta tag is not loaded here:
view-source:hidden link

I created a test site and tried to replicate the issue. You can see here on the "Sample Page" and its translation that the meta tag is appearing as expected:

One-Click-Login:
hidden link

---

It seems that the minimum requirements are not met on the server:
https://wpml.org/en/home/minimum-requirements/

Could you please increase the WordPress memory limit (WP Memory Limit) to at least 256 MB? WPML requires at least 128M.

Your current values ​​are:

PHP MemoryLimit 512M

WP Memory Limit 40M

You need to connect to your website's server and open the wp-config.php file in a text editor. The file is located in the WordPress root directory.

Add this code to the wp-config.php file to increase WordPress memory:

define ('WP_MEMORY_LIMIT', '256M');

Add this just before this comment:

// That's all, stop editing! Happy blogging.

The current values ​​can be viewed under WPML > Support > WordPress.

These settings can be restricted directly by your hosting provider. Therefore, I recommend contacting them and asking them to change them directly if the changes are not applied immediately.

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

January 11, 2025 at 6:10 pm #16584567

alexZ-17

1. Regretfully I must state that you do not read my communication diligently (cf. 2.) and you do not answer my question with regards to yours and Bobby’s instructions which I try to follow.
If you are not willing or not able to do this, please transfer the case to somebody else e.g. Marcel or Prosenjit.
My questions are of general importance for me as well.
2. Re your test site:
The ”noindex” tag is due to
Discourage search engines from indexing this site.
I have the same behavior at the development site, cf.
DEV.WP-Settings.Noindex_20250111.jpg – provided before. Read!
3. It is not true that WP Memory Limit is 40M, cf. Prod.WP-config_20250111.jpg and Prod.WPML.Support_20250111.jpg – it is 128Mb
You may check it by requesting the debug information

Prod.WP-config_20250111.jpg
Prod.WPML.Support_20250111.jpg