Listing Post depending on their language_id (with Gengo)
-
Hi
I would like to know how -in the template- to use my wp_query to show only posts in X language.Url : https://www.food-intolerance.ca/food-intolerance/fr/
the piece of code I use to show the “recent articles” in the bottom of every columns is the following :
<?php $recent = new WP_Query("cat=7&showposts=5"); while($recent->have_posts()) : $recent->the_post();?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endwhile; ?>
How do I specify “show only posts that have the language_id = 2 (1 being english and 2 being french)
I use WP 2.1.2 and Gengo 0.9
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Listing Post depending on their language_id (with Gengo)’ is closed to new replies.