Skip Navigation

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

Problem:
If you're experiencing issues with translating texts from tables embedded into a page using the

[rpt name="pricing"]

shortcode and they are not showing up in WPML.
Solution:
1. Navigate to WPML > Settings:
- In the Post Types Translation section, set the post type "Pricing Tables (rpt_pricing_table)" to "Translatable - only show translated items".
- In the Custom Fields Translation section, click on "Show system fields" and set the field "_rpt_plan_group" to "Translate".
2. Go to Pricing Tables, edit the pricing post, and translate it. Note that the shortcode in English is

[rpt name="pricing"]

and in Spanish, it is

[rpt name="pricing-es"]

.
3. In WPML > Settings > Custom XML Configuration tab, add the following code to register the

[rpt]

shortcode for translation:

<wpml-config>
  <shortcodes>
    <shortcode>
        <tag>rpt</tag>
        <attributes>
            <attribute>name</attribute>
        </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

4. Edit the page that contains the

[rpt]

shortcode, click on Update, and then update the shortcode name attribute to "pricing-es" in the Advanced Translation Editor.
Refer to the following documentation for more details:

If this solution doesn't look relevant to your issue, please open a new support ticket with us.

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 3 replies, has 3 voices.

Last updated by Long Nguyen 1 year, 6 months ago.

Assisted by: Long Nguyen.

Author Posts
November 30, 2023 at 10:03 am #14960461

andreiK-8

The table is embedded into a page with [rpt name="pricing"] tag.

I tried WPML -> String translation and then scanned this plugin, but texts from my tables are still not shown in WPML.

hidden link - in the Prices part

November 30, 2023 at 12:00 pm #14961983

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello, welcome to the WPML support Forum!

While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.

Which plugin are you using to create the tables?

This seems to be a new compatibility issue. In these cases, these are the procedures:
- Install the plugin in a clean installation and reproduce the problem in this new installation. So we can isolate it and do some testing without the interference of server settings or other plugins
- After this, we will check the problem in this new installation and look for a quick solution
- If we can not find a solution, we will forward the problem to our compatibility team
- The compatibility team will do some more testing and will contact the product author to fix the issue

I created a test website with a clean WordPress install. You can access it through this link: hidden link - Through this link you will be automatically logged in.

Please upload the plugin to this test install, setup it the same way as in your website (using the same options) and create some dummy content to reproduce the issue. Please note that we only need the plugin and the related functionality, you don't need to setup a entire website or clone your existing site.

After that, please send us clear steps on how to see/reproduce the issue on this test install. We will run some tests.

November 30, 2023 at 2:58 pm #14964343

andreiK-8

I've added the plugin and a test page with a pricing table. To reproduce the issue just try to translate it.

December 1, 2023 at 4:48 am #14968479

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Andrei,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

I've done the steps below to translate the pricing table on the sandbox site. You can apply them on your site and see how it goes.

1. Go to WPML > Settings:
- Post Types Translation section: Set the post type "Pricing Tables (rpt_pricing_table)" preference to "Translatable - only show translated items".
- Custom Fields Translation section: click on the button "Show system fields" > Set the field "_rpt_plan_group" preference to "Translate".

2. Go to Pricing Tables > Edit the pricing post > Translate it. You can see the shortcode in English is [rpt name="pricing"] and in Spanish is [rpt name="pricing-es"]

3. Go to WPML > Settings > Custom XML Configuration tab > Add the code below to register the [rpt] shortcode for translation.

<wpml-config>
  <shortcodes>
    <shortcode>
        <tag>rpt</tag>
        <attributes>
            <attribute>name</attribute>
        </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

4. Edit the page that has the [rpt] shortcode > Click on Update > Update the shortcode name attribute "pricing-es" in the Advanced Translation Editor.

Refer documentation
https://wpml.org/documentation/support/language-configuration-files/register-page-builder-content-for-translation/
https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

Look forward to your reply.
Thanks

Pricing ES – Sandbox 2023-12-01 11-39-14.png