Title: Conditional shortcode
Last modified: February 24, 2022

---

# Conditional shortcode

 *  Resolved [marino95](https://wordpress.org/support/users/marino95/)
 * (@marino95)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/conditional-shortcode-4/)
 * Hello, i need a help.
 * Currently i’m translating the whole website in different languages, the principal
   is en_US and i’m translating in IT, ES, NO, FI etc.
 * The question is -> i have the blog post created in english and i would to use
   the conditional shortcode to substitute only the article in italian.
 * E.g.
 * ( This is a article blog that is english and i’ll translate in ES – NO – FI )
   ——-(
   Questo è un articolo in italiano ed è scritto diversamente This is an article
   in italian and it will be wrote in different way )
 * There is a way with conditional shortcode that i can create a different e.g.
 * [trp_language { not equal } language=”it_IT”]
 * This is a article blog that is english and i’ll translate in ES – NO – FI )
 * [/trp_language]
 * ——-
 * [trp_language { only } language=”it_IT”]
 * ( Questo è un articolo in italiano ed è scritto diversamente
    This is an article
   in italian and it will be wrote in different way )
 * [/trp_language]

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

 *  [Andrei](https://wordpress.org/support/users/andrei202/)
 * (@andrei202)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/conditional-shortcode-4/#post-15422556)
 * Hello there,
 * Thanks for reaching out to us!
 * Unfortunately this is not currently doable with our plugin.
    Your best approach
   would be to use our integration with [Elementor](https://translatepress.com/docs/restrict-by-language/elementor-integration/),
   [Oxygen](https://translatepress.com/docs/restrict-by-language/oxygen-builder-integration/)
   or [WPBakery](https://translatepress.com/docs/restrict-by-language/wpbackery-integration/)
   to restrict the content based on language.
 * Thank you for your patience so far!
 * Best Regards
 *  Plugin Support [Alex](https://wordpress.org/support/users/alexcozmoslabs/)
 * (@alexcozmoslabs)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/conditional-shortcode-4/#post-15471571)
 * Since it’s has been more than 5 days since you received instructions about the
   opened topic, and you did not return with an update, we will mark this ticket
   as successfully resolved.
    If you have other questions regarding TranslatePress,
   we recommend you create another ticket.

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

The topic ‘Conditional shortcode’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/alexcozmoslabs/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/conditional-shortcode-4/#post-15471571)
 * Status: resolved