Title: Conditional Shortcode Based on Language
Last modified: September 4, 2025

---

# Conditional Shortcode Based on Language

 *  Resolved [Camilo](https://wordpress.org/support/users/camilo517/)
 * (@camilo517)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/conditional-shortcode-based-on-language/)
 * This “Conditional Shortcode Based on Language” no work in new update
 * [https://translatepress.com/docs/restrict-by-language/translation-shortcode/](https://translatepress.com/docs/restrict-by-language/translation-shortcode/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Alex](https://wordpress.org/support/users/alexcozmoslabs/)
 * (@alexcozmoslabs)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/conditional-shortcode-based-on-language/#post-18629233)
 * Hi,
   Could you please let us know how you tried using it? Screenshots with your
   post back-end and TP Settings –> General tab to see your language configuration
   will help to debug this.
    -  This reply was modified 9 months, 1 week ago by [Alex](https://wordpress.org/support/users/alexcozmoslabs/).
 *  Thread Starter [Camilo](https://wordpress.org/support/users/camilo517/)
 * (@camilo517)
 * [9 months ago](https://wordpress.org/support/topic/conditional-shortcode-based-on-language/#post-18633028)
 * This
 * [trp_language language=”es_ES”] Hola {{customer.firstname}}!! Aún guardamos tu
   pedido [/trp_language] [trp_language language=”pt_PT”] Olá {{customer.firstname}}!!!!
   Ainda estamos a guardar a sua encomenda [/trp_language]
 * It used to work, but now in version 2.10, it doesn’t.
 *  Plugin Support [Alex](https://wordpress.org/support/users/alexcozmoslabs/)
 * (@alexcozmoslabs)
 * [9 months ago](https://wordpress.org/support/topic/conditional-shortcode-based-on-language/#post-18633945)
 * Hi,
   The text from th shortcode looks the same for both languages:[trp_language
   language=”es_ES”] **Hello {{customer.firstname}}!! We are still saving your order**[/
   trp_language] [trp_language language=”pt_PT”] Hello {{customer.firstname}}!!!!**
   We are still saving your order** [/trp_language]That’s why ou receive the same
   strings when completing the order in both these languages.If I misunderstood 
   something, you can downgrade the plugin to the previous version (where you claim
   it worked) and check again. However, there were no changes in the latest updates
   regarding shortcode.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Conditional Shortcode Based on Language’ is closed to new replies.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [TranslatePress - Translate Multilingual sites with AI Translation](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/alexcozmoslabs/)
 * Last activity: [9 months ago](https://wordpress.org/support/topic/conditional-shortcode-based-on-language/#post-18633945)
 * Status: resolved