WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a set of links, each with an image - how can I show different links depending on the language selected (using qTranslate) - the images have text on them..

At the moment I show these links using the rotating links widget.

Are there any plugins to help with this? or do I need to resort to PHP?

share|improve this question
up vote 3 down vote accepted

You can get the current language with qtranslate using the function qtrans_getLanguage(); and then use it like this for conditionally showing content:

        if ( qtrans_getLanguage() == 'en' ) {
          //put your code in here
        elseif ( qtrans_getLanguage() == 'de' ) {
          //put your code in here
share|improve this answer
OK thanks - no plugins then - roll my own.. – Guy Bowden Jul 26 '13 at 8:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.