• I’m using a customized theme and I’m translating my content with qtraslate,

    qtranslate works fine on the first loop but the problem is that when I use a second loop in my template, it shows the content twice, one in the default language an the other in the language it’s supposed to,

    here’s what I use for the second loop:

    <?php $list_of_services = new WP_Query( 'cat=4');
            if ($list_of_services->have_posts()) : while($list_of_services->have_posts()) : $list_of_services->the_post();?>
                <?php get_template_part( 'content', get_post_format() ); ?>
            <?php endwhile; endif; ?>
            <?php wp_reset_postdata();?>

    Since I’ve created this theme from ground up I maybe missing something , any ideas are welcome.

Viewing 1 replies (of 1 total)
  • Thread Starter Fra Calo

    (@frank-maio)

    if I change
    $list_of_services = new WP_Query( 'cat=4')
    to
    $list_of_services = new WP_Query( 'p=90')

    it works as expected…
    (bu that’s not what I want)

Viewing 1 replies (of 1 total)
  • The topic ‘multiple loops and qtranslate’ is closed to new replies.