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 1 reply, has 2 voices.

Last updated by Alejandro 1 year, 5 months ago.

Author Posts
February 4, 2024 at 1:19 pm #15263504

denisS-34

Hello,

I want to add the block "This post is also available in:" and then the other language.
The option is called "Links to translation of posts" in WPML. However with Bricks builder it won't appear.

Is there a shortcode that I can add that block at a specific point in my page?

Thank you and best regards

February 5, 2024 at 1:26 pm #15266326

Alejandro
WPML Supporter since 02/2018

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

Timezone: Europe/Rome (GMT+02:00)

Hello!

I'll help you out while a supporter takes your case.

That might be template dependent and i'm not sure how that would work with bricks. that is a feature that appears directly on the custom post type "posts" and "pages", it might not appear in the other ones.

However you can create your own by using this shortcode: https://wpml.org/documentation/support/wpml-coding-api/shortcodes/#wpml_language_switcher + a text.

Give it a try and let me know if it works.

February 5, 2024 at 1:56 pm #15266468

denisS-34

Thank you so much, that was it!

The following shortcode solved it for me:
[wpml_language_switcher type="post_translations" flags=1 native=1 translated=0][/wpml_language_switcher]

Actually I like it more that way, as I can put the hint at specific points where I want them to be.