Working with the php to the current url in WordPress
Today i had several problems with Qtranslate, who simply doesn’t want to translate the static home pages (still don’t know why)… so I started using transposh, which is quite good for how simple it is.

<?php $url = content_url(); ?>?lang=es”>
This tag should be add before the code you want to add at the end of each url, so, in my case, ended up being something like this:
<a href=”<?php $url = content_url(); ?>?lang=es”><img src=”<?php bloginfo(‘template_directory’); ?>/images/Spanish-flag-small.gif”></a>
With this simple code, wordpress will know that it has to use the current url and not the home page one, adding the ?lang=es at the end. You can see that this is an easy fix, and since i add it at the home.php file, I have nothing else to do.
Help tatica and donate with paypal!