WordPress中每个帖子的高级自定义字段

I am using Advanced Custom Fields in order to show different banner image for each language with qTranslate plugin.

<?php get_header(); ?>

<section id="linea">
            <?php if(qtrans_getLanguage()=='en') {
 ?>
                <img src="<?php the_field('banner')?>">
<?php }
else if(qtrans_getLanguage()=='es') {?>
                <img src="<?php the_field('banner_image_es')?>">
<?php }?>
        </section>
<section id="categoria1">
            <div class="pagewidth clearfix">
                    <div class="breadcrumbs" xmlns:v="http://rdf.data-vocabulary.org/#">
                        <?php if(function_exists('bcn_display'))
                        {
                            bcn_display();
                        }?>
                    </div>
                    <h1 class="categoria-title"><span class="left"></span><b><?php single_term_title(); ?></b><span class="right"></span></h1>
            </div>
        </section>

        <section id="categoria2">
            <div class="pagewidth clearfix">

                <ul class="product-list">
                    <?php $my_query = new WP_Query(array('post_type' => 'productos','taxonomy'=>'categoria','term'=>'conformink-cunero-luxy','paged' => get_query_var('paged'))); ?>

                    <?php while ( $my_query->have_posts() ) : $my_query->the_post();?> 

                        <li>
                            <h5><a style="color: #f79646;"  href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>  
                            <a class="verdetalle" href="<?php the_permalink(); ?>"><?php if( qtranxf_getLanguage() == 'es' ){ ?>Ver detalle<?php }else { ?>See More<?php } ?></a>
                            <!-- <p><?php echo substr(get_the_excerpt(), 0,120); ?></p> -->
                            <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a>   
                        </li>

                    <?php
    endwhile;
    wp_pagenavi( array( 'query' => $my_query ) );?>
    <?php wp_reset_query(); ?>
                </ul>   
</div>
        </section>
<?php get_footer(); ?>

The problem is that it keep showing the image of only one post on all templates, although I have already assigned the different images to different categories.

Can anyone help?

If you want the banner to show up on every post you'll have to move the section inside the loop:

<section id="categoria2">
    <div class="pagewidth clearfix">

        <ul class="product-list">
            <?php 
            $my_query = new WP_Query(array('post_type' => 'productos','taxonomy'=>'categoria','term'=>'conformink-cunero-luxy','paged' => get_query_var('paged')));

            if ( $my_query->have_posts() ) : while ( $my_query->have_posts() ) : $my_query->the_post();?> 

            <li>
                <section id="linea">
                    <?php if ( qtrans_getLanguage() == 'en' ) : ?>
                        <img src="<?php the_field('banner'); ?>">
                    <?php elseif ( qtrans_getLanguage() == 'es' ) : ?>
                        <img src="<?php the_field('banner_image_es'); ?>">
                    <?php endif; ?>
                </section>
                <h5><a style="color: #f79646;"  href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>  
                <a class="verdetalle" href="<?php the_permalink(); ?>"><?php if( qtranxf_getLanguage() == 'es' ){ ?>Ver detalle<?php }else { ?>See More<?php } ?></a>
                <!-- <p><?php echo substr(get_the_excerpt(), 0,120); ?></p> -->
                <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a>   
            </li>
            <?php
            endwhile; endif;
            wp_pagenavi( array( 'query' => $my_query ) );
            wp_reset_query(); ?>
        </ul>   
    </div>
</section>