I would like to know how -in the template- to use my wp_query to show only posts in X language.
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
- The topic ‘Listing Post depending on their language_id (with Gengo)’ is closed to new replies.