Support » Fixing WordPress » correct site_url impact in template

  • Hi All!

    I want to put a 2 language link into my theme’s header with qtranslate plugin

    My problem is the link, because of

    <a href="<?php qtrans_convertURL( site_url('/') ); ?>?p=485"><?php _e("<!--:de-->...blah-blah-blah!<!--:--><!--:en-->blah2-balh2-balh2<!--:-->"); ?></a>

    the link is working both of the language but only on the homepage

    if i’m on a different page the link looks like this and get an error of course page not found

    Would it any page I stand on, the link has to be

    could you please help me how to do this??

  • The topic ‘correct site_url impact in template’ is closed to new replies.