Support » Plugin: qTranslate » [Plugin: qTranslate]

  • Resolved whoopcg


    Hi there.

    I’m using this code to list all titles, both languages at the same time, and would like to add the permalink to each language. If I use <?php the_permalink() ?> it only returns, obviously, the default language.

    remove_filter('the_posts', 'qtrans_postsFilter');
    query_posts('cat=0$posts_per_page=-1'); // query to show all posts independant from what is in the center;
    global $post;
    if (have_posts()) :
       while (have_posts()) :
    <?php echo qtrans_use('pt', $post->post_title); ?>
    <?php echo qtrans_use('en', $post->post_title); ?>
    <?php  endwhile;
    add_filter('the_posts', 'qtrans_postsFilter');

Viewing 1 replies (of 1 total)
  • Was using this plugin forum also and was answered!
    Hope this helps others.

    Must use
    <?php echo qtrans_convertURL(get_permalink(), 'pt'); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: qTranslate]’ is closed to new replies.