Title: ppqtrans_generateLanguageSelectCode(&#039;image&#039;)
Last modified: August 22, 2016

---

# ppqtrans_generateLanguageSelectCode('image')

 *  Resolved [pamina](https://wordpress.org/support/users/pamina/)
 * (@pamina)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/ppqtrans_generatelanguageselectcodeimage/)
 * Somehow the function <?php echo ppqtrans_generateLanguageSelectCode(‘image’);?
   > is not working anymore. With “both” I get at least the language names displayed
   but no flags.
 * [https://wordpress.org/plugins/qtranslate-xp/](https://wordpress.org/plugins/qtranslate-xp/)

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

 *  Plugin Author [Mirko_Primapagina](https://wordpress.org/support/users/mirko_primapagina/)
 * (@mirko_primapagina)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/ppqtrans_generatelanguageselectcodeimage/#post-5259565)
 * Hi,
    I’ve tried the function and it seems to works properly. [**Screenshot**](http://www.primapagina.it/images/screensupport.jpg)(
   this is a virgin blog used for tests with the last version of qTranslate Plus).
 * Can i check your page? So i can help you
 * Best regards,
    Mirko
 *  Thread Starter [pamina](https://wordpress.org/support/users/pamina/)
 * (@pamina)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/ppqtrans_generatelanguageselectcodeimage/#post-5259570)
 * sure: [http://www.paminagirlschoir.eu](http://www.paminagirlschoir.eu)
    I have
   the widget active in the right sidebar and added <?php ppqtrans_generateLanguageSelectCode(‘
   both’); ?> in the header.php both worked with the old qtranslate plugin and the
   origin theme ([http://alienwp.com/themes/origin/](http://alienwp.com/themes/origin/))
   we are using. Thanks, K
 *  Plugin Author [Mirko_Primapagina](https://wordpress.org/support/users/mirko_primapagina/)
 * (@mirko_primapagina)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/ppqtrans_generatelanguageselectcodeimage/#post-5259618)
 * Hi,
    probably you have only overwriten the files in the old qtranslate folder.
   You have to rename `wp-content/plugins/qtranslate` in `wp-content/plugins/ppqtranslate`
   and then reactivate the plugin 😉
 *  Thread Starter [pamina](https://wordpress.org/support/users/pamina/)
 * (@pamina)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/ppqtrans_generatelanguageselectcodeimage/#post-5259686)
 * perfekt. now it works. the folder was automatically named “qtranslate-xp” after
   installation.
    thanks!!
 *  [RoberMc](https://wordpress.org/support/users/robermc/)
 * (@robermc)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/ppqtrans_generatelanguageselectcodeimage/#post-5259981)
 * Hello!
 * I had the same problem and this solution works fine for the English flag.
 * Server returns:
    .ppqtrans_flag_en { background: url(“[http://glitchcorner.260mb.net/wp-content/plugins/ppqtranslate/flags/gb.png&#8221](http://glitchcorner.260mb.net/wp-content/plugins/ppqtranslate/flags/gb.png&#8221);)
   no-repeat transparent; }
 * But for the Spanish flag i only get:
    .ppqtrans_flag_es { background: url(“[http://glitchcorner.260mb.net/wp-content/plugins/ppqtranslate/flags/&#8221](http://glitchcorner.260mb.net/wp-content/plugins/ppqtranslate/flags/&#8221);)
   no-repeat transparent; }
 * And don’t appears visible.
 * Website: [http://glitchcorner.260mb.net/en/](http://glitchcorner.260mb.net/en/)
   
   WordPress Version: 4.0 Plunging: 2.6.3
 * Thank you in advance 🙂
 *  [RoberMc](https://wordpress.org/support/users/robermc/)
 * (@robermc)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/ppqtrans_generatelanguageselectcodeimage/#post-5259982)
 * Update:
 * Problem solved, after updating to wordpress 4.0 some flags languages lost their
   flag icon reference in settings->languaje
 * Thank you anyway
 *  Plugin Author [Mirko_Primapagina](https://wordpress.org/support/users/mirko_primapagina/)
 * (@mirko_primapagina)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/ppqtrans_generatelanguageselectcodeimage/#post-5259988)
 * Hi,
    updating the plugin will resolve the flags problem.

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

The topic ‘ppqtrans_generateLanguageSelectCode('image')’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-xp_9abe93.svg)
 * [qTranslate Plus](https://wordpress.org/plugins/qtranslate-xp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-xp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-xp/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-xp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-xp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-xp/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Mirko_Primapagina](https://wordpress.org/support/users/mirko_primapagina/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/ppqtrans_generatelanguageselectcodeimage/#post-5259988)
 * Status: resolved