Title: PHP Code for posts and qTranslate
Last modified: August 24, 2016

---

# PHP Code for posts and qTranslate

 *  [bluedrag](https://wordpress.org/support/users/bluedrag/)
 * (@bluedrag)
 * [11 years ago](https://wordpress.org/support/topic/php-code-for-posts-and-qtranslate/)
 * So you’re plugin seems to be working while I test an echo of the string ‘Hello
   World’ but when I try to use the qTranslate function to carry over the selected
   language (using this plugin to keep my site bilingual) PHP Code for posts doesn’t
   seem to like that. I’m getting a blank page.
 * Here is the code it doesn’t seem to like:
 * `<?php echo qtrans_convertURL('http://www.mysite.com/' .$lang); ?>`
 * Any ideas on how to fix this?
 * [https://wordpress.org/plugins/php-code-for-posts/](https://wordpress.org/plugins/php-code-for-posts/)

The topic ‘PHP Code for posts and qTranslate’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-code-for-posts_0d1022.svg)
 * [PHP Code for posts](https://wordpress.org/plugins/php-code-for-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-code-for-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-code-for-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/php-code-for-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-code-for-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-code-for-posts/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [function](https://wordpress.org/support/topic-tag/function/)

 * 0 replies
 * 1 participant
 * Last reply from: [bluedrag](https://wordpress.org/support/users/bluedrag/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/php-code-for-posts-and-qtranslate/)
 * Status: not resolved