Skip to content Skip to sidebar

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

Last updated by Andreas W. 1 year, 7 months ago.

Assisted by: Andreas W..

Author Posts
February 23, 2024 at 4:55 pm #15338836

michalK-86

Hi,

How to get [post_title] from the lastest post based on specific language please?

thx!

February 23, 2024 at 9:10 pm #15339394

Andreas W.
WPML Supporter since 12/2018

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

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

Hello,

WPML filters the content by the currently active languages, which means if the visitor is on the English website, he will see the English post titles.

Are you for example trying to display Spanish post titles on the English part of the website?

Please provide me with more details and a code example of what you are trying to achieve.

To help you faster, I've enabled a private message for submitting the debug information for this support ticket. Please see this link for how to get this information from your site and give it to us:
http://wpml.org/faq/provide-debug-information-faster-support/

Make sure to only use the private reply form in order to provide this information. Please do not paste the debug information directly into a comment on this ticket.

Best regards
Andreas

February 23, 2024 at 10:50 pm #15339643

michalK-86

I need to use shortcode {dynamic_subject} in email template, but it does not work... It works only in automated newsletters.... Any idea? Thank you!

February 24, 2024 at 2:47 am #15339832

Andreas W.
WPML Supporter since 12/2018

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

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

I am still not sure if I understand what you are trying to achieve.

E-mail templates can be translated with WPML > String Translation and as long the post is translated you should see translated post titles in a second language.

I can offer a WPML test site on which you can recreate the issue.

IMPORTANT:
To help you faster, I've enabled a private message for submitting the debug information for this support ticket. Please see this link for how to get this information from your site and give it to us:
http://wpml.org/faq/provide-debug-information-faster-support/

Make sure to only use the private reply form to provide this information. Please do not paste the debug information directly into a comment on this ticket.

The topic ‘[Closed] How to get [post_title] from the lastest post based on specific language?’ is closed to new replies.