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)

Tagged: 

This topic contains 22 replies, has 0 voices.

Last updated by Andreas W. 15 hours, 5 minutes ago.

Assisted by: Andreas W..

Author Posts
May 1, 2025 at 9:31 pm #16987416

barjD-2

Background of the issue:
I am trying to:
Translate the "Read more" text on the button that goes inside a WP Post Query Block.

I expected to see:

The "Read more" text as a field that I can translate either:
1) In the Advanced Translation Editor
2) As a string or WP admin text that I can add to strings
3) In the classic page editor on the translated page, and have that translation 'save' until I change it

Symptoms:
Instead I got:

1) The "Read more" text is not available to translate in the Advanced Translation Editor.

2) No strings or admin texts relating to the WP Post Query Block that I could translate, particularly for the "Read More" text. I have searched string translation, as well as the "admin texts" screen, and all instances of "Read more" are translated. None of these translations seem to apply to the WP Post Query Block.

3) In the classic page editor on the translated page, I am able to change the text to the translated language. If I click to save the page, it saves. However, if I go back to use the Advanced Translation Editor to check something, or to modify any text, and then click on "Complete Translation," then the "Read more" text goes back to the previous (original) language.

I tried switching to the old Advanced Translation Editor and this did not fix the issue.

You can see a screencast of the issue here hidden link

I am also attaching screenshots with annotations.

Questions:
Why is the 'Read more' text not available for translation in the Advanced Translation Editor?
How can I ensure the 'Read more' text translation is saved and not reverted?

May 5, 2025 at 1:23 pm #16996477

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

I apologize for the delay in responding. I will take care of this ticket; the reply time will be shorter now.

Weirdly, the string appears in the classic translation editor, but it does not show up in ATE.

I suggest you to try the following:
❌ Please make a full website backup before proceeding ❌
- Go to Pages
- Switch to the secondary language using the selector in the admin bar
- Delete the existing translated page (Trash ► Delete Permanently) so WPML forgets its link to the old translation memory. 
- In the default‑language page, make a tiny, harmless edit (e.g., add a space) and update; this guarantees WPML registers “content changed.” 
- Re‑send the page to translation from WPML → Translation Management and open it exclusively in the ATE.  
- Check if now the "Read more” string appears and reach 100 % complete; then never switch to the Classic/Block editor for that page again.

If this does not work:
- Identify whether the Query Loop resides in a Template Part (Site Editor) or in a Reusable Block/Pattern on the page.
- In WPML → Translation Management, locate that template or pattern and send it to translation. 
- Open it in the ATE; the “Read more” segment should now appear. Translate, save, and it persists because the source is the template, not the page. 

Best Regards,
Otto

May 6, 2025 at 12:37 am #16998770

barjD-2

Hello,

Thank you for your detailed help with this.

I have followed your instructions exactly on a separate development site, so as not to lose the work I have put into the page already.

I definitely clicked to "Trash" the translation and definitely went into the Trash and clicked to "delete permanently." I then went to WPML → Translation Management, assigned the page to myself and opened it in the ATE.

And yes, before doing this, I did add the harmless space and clicked to save the English (original language). I also deleted a character, clicked save, then added the character back and added a space and clicked save.

The "Read more" was not in the ATE. All the Punjabi was still there.

This WP Query Loop block is not part of a template part and is not set up as a re-usable block. It is the native WP Query Loop block: https://wordpress.org/documentation/article/query-loop-block/

The block is inserted into a 'normal' page without a template or any template parts. It was not custom-themed (except the CSS to adjust styling - but zero other coding).

In other words, just like I would have added a WP columns block or WP block quote block, I added the WP Query Loop block the same way.

There is no "/parts" or "/template-parts" folder in our theme.

Our functions.php file does not call "get_template_part()" anywhere.

I'd be happy to give you access to this development environment so you can see what happens when you perform all the steps you've mentioned.

May 6, 2025 at 1:46 pm #17002102

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue.
It would be better to a testing site where the issue is replicated.

The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I'll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site.
This will allow me to create a copy of your site and your content.
Once the problem is resolved I will delete the local site.

**IMPORTANT**
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields.

Best Regards,
Otto

May 7, 2025 at 4:41 pm #17007962

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

I also managed to reproduce the issue from scratch. It looks like a bug to me.

I escalated the issue to our second-tier support. I'll get back to you as soon as I have news from them.

Best Regards,
Otto

May 8, 2025 at 12:40 pm #17011732

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Our second-tier support suggested this soluiton:
- Go to WPML -> Settings -> Custom XML Configuration
- Add this and save:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="core/read-more" translate="1">
        <key name="content" />
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

- Make a small change in the original page to trigger a "needs update" of the translation
- Open the translation editor and see if now the string appears for translation

Best Regards,
Otto

May 9, 2025 at 1:36 am #17014185

barjD-2

Hello, I have completed all the steps noted, and the "Read more" was not in the ATE for translation.

I did this on the same development site which you have access to.

I took out the character in the title of "Home" so now it reads "Hom" and I clicked on save. Then I went back to WordPress > Pages and I clicked on the cog icon to open the ATE.

May 9, 2025 at 12:25 pm #17016592

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

I edited the "Read more" string and translated it using ATE. You can see it here:
hidden link

You can revert to "Read more", and then you should be able to add the proper translation.

Best Regards,
Otto

May 9, 2025 at 8:22 pm #17017865

barjD-2

Hello, thank you for your help.

However, it looks like there is something about the word "Read more" or the title of "Home" that somehow prevents the ATE from showing the string "Read more."

I see that in English (original language), you changed "Read more" to "Read more - edited."

This was in addition to me changing the title of the page from "Home" to "Hom".

With the home page having these edits, I was able to open the ATE and I could see that "Read more - edited" was a translatable string. In Punjabi, you put "PA more - edited."

However, when I went to try to set this up with a proper translation (to ensure it would work with Punjabi characters and the right words), I ran into the same issue.

When I changed the title of the English page back to "Home" and reverted "Read more - edited" back to just, "Read more," the string no longer appears in the ATE for translation.

You can see this in the screencast here:

hidden link

I have also added screenshots for reference.

The development site is still available for you to access, if you want to view this for yourself.

Screenshot 2025-05-09 at 1.04.33 PM.png
Screenshot 2025-05-09 at 1.03.27 PM.png
May 12, 2025 at 1:09 pm #17023166

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks for the detailed explanation.

I am not sure what the problem is with the "Read more" string. I couldn't reproduce the issue in a fresh install.

But there is an easy workaround. I just added a space after "more" and I was able to translate it. Is this a suitable solution for you? If so, you just need to edit the translation and change "PA - Read more" to the proper translation.

Best Regards,
Otto

May 14, 2025 at 7:56 pm #17034310

barjD-2

Hello,

Thank you for your help.

I was able to reproduce the issue on a clean install using Twenty Twenty Five and creating a child theme to go with it.

If there is no child theme, the problem does not appear.

If there is a blank child theme, with no plugins added except WPML and string translation, the issue does appear.

The child theme only contains style.css (with no styles). I tested the functions.php in the following ways, and the issue persists:

1) Load the child theme style.css and add a custom post type (I wanted to see if this was related to custom post types only).
2) Add an empty functions.php file (nothing in it)

I tested by creating both native WP posts and posts within a custom post type.

The "Read more" from the query loop block does not show up in the ATE when looping either the native WP posts or the custom post type posts.

I would be happy to give you access to this site so you can see.

It is a fresh install with nothing previously migrated from any other site.

I don't think that adding a space to the "Read more" is a solution here. It seems like something is wrong in the way that WPML is 'overlooking' or 'missing' the "Read more" text from a native WP block.

If we add a space, that will change the design. It would really be preferable if the issue could be solved from the 'root.'

May 14, 2025 at 8:05 pm #17034335

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks for all the testing and the detailed explanation.

Can you please try creating a wpml-config.xml file with the content I've shared before in the root of the child's theme folder? Does this help?

Best Regards,
Otto

May 14, 2025 at 8:49 pm #17034400

barjD-2

I have followed the step outlined in this reply https://wpml.org/forums/topic/wp-post-query-blocks-read-more-text-is-not-translatable-in-advanced-translation-editor-doesn/#post-17011732

After saving, refreshing the page to ensure it saved, I went to Pages and re-opened the ATE. The "Read more" still does not show up.

This is the same behaviour as before, on our main site with our theme and plugins, etc.

May 15, 2025 at 4:18 pm #17038045

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Did you add the config file to the child theme?

Can you please add the child theme to this testing site so I can check it?
hidden link

Thanks.

Best Regards,
Otto

May 15, 2025 at 8:10 pm #17038699

barjD-2

Hello, I don't know what you mean about adding the config file to the child theme. I would need more instructions. I added the code based on the instructions given previously, in the dashboard under WPML settings.

I have added the child theme to the testing site as requested.