Bonjour tout le monde !

Je viens vers vous car je suis un novice en php et j'ai un problème dans mon wordpress !

J'ai ajouté un plugin de langue pour traduire mon site en anglais/français mais voici le problème :

Quand on arrive sur le site on est censé tomber sur la page d'accueil (anglais ou français) et tomber sur le dernier article de la langue choisie. Dans ma page d'accueil j'ai demander via WP que ce soit toujours le dernier article écrit qui apparaisse mais le pb c'est que si je suis dans la langue anglaise et que le dernier article est français il s'affiche sur la page d'accueil anglaise et vise versa et je ne sais pas comment régler ce problème !

Voici le code de mon index.php

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
<?php get_header(); ?>
 
		<div class="section col-lg-10 col-lg-offset-1 home-template">
        	<!--Mettre un seul post sur page accueil-->
			<?php query_posts('cat=1&posts_per_page=1'); ?>
 
			<?php if (have_posts()) : ?>
			<?php while (have_posts()) : the_post(); ?>
			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
				<header class="col-lg-12">
					<div class="row">
						<div class="img-article col-lg-12"><?php if (has_post_thumbnail()) the_post_thumbnail(); ?></div>
						<div class="col-lg-12 separation-index">
							<h1 class="title-article col-lg-6 col-md-6 col-sm-6 col-xs-12"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
							<p class="col-lg-6 col-md-6 col-sm-6 col-xs-12 info-title-article"><?php _e('Posted on', 'h5'); ?> <?php the_time('F jS, Y'); ?> <?php _e('by', 'h5'); ?> <?php the_author(); ?></p>
						</div>
					</div>
				</header>
				<section class="col-lg-12">
					<div class="description-article-index col-lg-12">
						<?php the_excerpt(); ?>
					</div>
				</section>
				<footer class="col-lg-12 footer-index">
					<div class="row">
						<div class="col-lg-12">
							<?php the_tags('<p class="tags">Tags: ', ', ', '</p>', '<br>'); ?> 
						</div>
						<div class="col-lg-12 separation-footer">
							<div class="topic"><?php _e('TOPIC : ', 'h5'); ?> <?php the_category(', '); ?> </div>
						</div>
					</div>
				</footer>
                <div class="col-lg-12 latest-post">
           <?php echo do_shortcode('[frontpage_news widget="124" name="Last post"]'); ?>
                </div>
			</article>
 
			<?php endwhile; ?>
 
			<?php else : ?>
 
			<article>
				<h1><?php _e('Not Found', 'h5'); ?></h1>
				<p><?php _e('Sorry, but the requested resource was not found on this site.', 'h5'); ?></p>
				<?php get_search_form(); ?>
			</article>
 
			<?php endif; ?>
 
		</div>
 
 
<?php get_footer(); ?>
Et le lien vers le site : www.the-activist.com

Si vous avez des solution je suis preneur !

Merci !!!