1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Multilang website using wordpress help

Discussion in 'PHP' started by nk19, Aug 11, 2012.

  1. #1
    first i am sorry for my not so great english.
    i want to make a multilang wordpress website, now i can find how to make custom title, description and some more for every languege.
    i allready made it to be different title for every tipe of page in my website for exemple:

    <title>
    <?php
    if (is_home()) { echo (' testitle ');}
    elseif (is_404()) { echo 'EROR 404 | MYSITE'; }
    else if ( is_search() ) { echo (' Search result for '); the_search_query(); echo (' | MYSITE');}
    else if ( is_single() ) { the_title(); echo (' | MySereT');}
    else if ( is_category() ) { single_cat_title(); echo (' | MYSITE');}
    else if ( is_archive() ) { echo (' Archive '); wp_title(''); echo ' | MYSITE'; }
    else { bloginfo('name'); echo (' - '); wp_title(''); }
    ?>
    </title>

    but now i want to make for every lang different title and description because i cant to have the same title for different language.
    so please help me. i am using qtranslate plugin on my wp website and realy need that.
    is it even possible to do it using php code in header.php?

    hugh thanks ppl.
    hope you can help me
    nechemya.
     
    nk19, Aug 11, 2012 IP